vb

how to duplicate whole project in VB

hi i am using Visual Basic 2010 Express. i tried to copy project folder and rename it to duplicate one of my project. but it acts like my old project. i tried change root namespace and assembly name but no luck. how can i duplicate my whole project like "save as"? thanks ...

Parse Error Before 'End-Of-Line'

Hello, I'm developing memory management program, that the Form1_Load Sub is like this: Private Sub Form_Load() HeapSize() HeapFree() HeapMax() StorageSize() StorageFree() End Sub But when I try to compile it, I'm getting this: Compiling... frmMain.hbf (1) : error #2000 : parse error before 'end-of-line' frm...

what are the disadvantages of using Visual Basic 6 ?

i heard that this is not good. but I want to make very generic programs. would Visual Basic 6 suffice ? ...

Does RTLCopyMemory work in Vista?

I've noticed that RTL*Move*Memory seems to work just fine. But when I try to use RTL*Copy*Memory I get: "Can't find DLL entry point RtlCopyMemory in kernel32". Here is my declare: Private Declare Sub CopyMem Lib "kernel32" Alias "RtlCopyMemory" ( _ ByVal dest As Long, _ ByVal source As Long, _ ByVal bytLen As Long) ...

Password Recovery using Asp.net

Hi, In my application, the password is encrypted and if the user forgets the password , there is no way to recover the password.Now we are cancelling that user account and creating a new one.Now i want a proper method to recover the password.The login is done using the Asp.net configuration tool.How can i recover my password using this?I...

detecting/preventing error/deadlock when opening/reading text file

I am reading file with text contents on it. sample dictionary.txt contents: aa abaca abroad apple Snippet A: Dim path as String = Server.MapPath("dictionary.txt"); Dim dictionary() as String = {} Try { dictionary = File.ReadAllLines(path) } Catch ex as Exception End Try Snippet B: Dim path as String = Server.Ma...

Unexpected reinitialization of variables declared in VB6 DLL module

I have a VB6 DLL embedded in some ASP pages. The DLL hits a Codebase database, an obsure and obsolete database engine (a dialect/variation on dBase) that virtually no-one has even heard of. It takes Codebase nearly a second to initialise a new connection, which is unacceptably slow and so I've created a connection pool, managed by a VB c...

Lotus Notes rich text field to RTF File - VB

Here is my problem, I am doing a data migration from Lotus notes to another type of software that does not support Rich Text Fields. I am trying to write a VB 2005 program that will take any rich text fields that are found and place them into an RTF file - which will be uploaded as an attachment in the new software. I cannot get the p...

C# Lambda Conversion to VB

Hi I have been looking at certain tutorials on sharparchitecture and trying to no avail (the online convertors don't seem to be able to do this): private Action<AutoMappingExpressions> GetSetup() { return c => { c.FindIdentity = type => type.Name == "Id"; }; } private Action<IConventionFinder> GetConventions() { ret...

Conversion from type 'String' to type 'String' is not valid

Hi, I'm in the process of porting an old excel addin that was writen in VBA to VB .NET. The Excel addin interacts with a number of external com objects. The code sorta looks like this: Dim hurr as Object Dim durr as String hurr = CreateObject("COM Object") durr = hurr.getString What I'm trying to do is read the string from the COM o...

Batch printing exception

I get this error while printing multiple .xps documents to a physical printer Dim defaultPrintQueue As PrintQueue = GetForwardPrintQueue(My.Settings.SelectedPrinter) Dim xpsPrintJob As PrintSystemJobInfo xpsPrintJob = defaultPrintQueue.AddJob(JobName, Document, False) Documents are spooled succesfully till, a print job exception o...

what libraries can i use to make http connections in visual basic? like cURL library for VB ?

what libraries can i use to make http connections in visual basic? like cURL library for VB ? i am looking for something like cURL for visual basic. VB.NET ! sorry should've made it clear. i also want to know, if i can submit web forms with VB. ...

installed Visual Basic 2008 Express Edition, but none of .NET classes are available!

For instance, I was trying to use WebRequest request = WebRequest.Create("http://www.contoso.com/"); But get an error message! I am trying to use the WebRequest .NET framework class http://msdn.microsoft.com/en-us/library/456dfw4f.aspx How can I enable .NET? Is something wrong with my installation? ...

how to fill out forms without submitting POST in System.Net ?

I am using visual basic 2008 i want to fill out forms, and I dont want to submit a POST url. Instead, I need to access directly the DOM object, and somehow click or interact it programmatically. should i use WebBrowser class ? can you show a sample code where text is entered into an input box, and the submit button is clicked ? ex) ...

CommonAppDataRegistry question VB

hi i think this is my last question in 2009, and i wish a happy new year to all users. When i use CommonAppDataRegistry in visual basic 2010, it sets value under my app's version in the registry. for example My App ---> 1.5.0.0 ----> My value is here is there a way to change this? i just wa...

choosing the right control for developing windows application

Hi all, I am looking for a contol either listbox or listview to support my requirements. Basically how my application looks is: The background should be black when the user clicks any 'row' the row should get highlighted witgh grey. The user will have the ability to search items in this control. For example , if one of the row ...

Crystal Reports 7 runtime

i use a program written in VB6 that uses crystal reports 7 for reporting. my machine crashed recently. i managed to copy the program files to a new system. when i try run the program, a file related to crystal reports is said to be missing. i was advised to install crystal reports 7 runtime. but i don't have the setup. anybody know where...

sign in with google account in asp.net

i am trying to use the API for "sign in with Google account" with my asp.net vb website just like StackOverflow or FriendFeed sign in with google. Please let me know if any one implemented it. ...

How to display data in form2 on double clicking an item in form1 listview

Hi, I am new to VB programming. I have 2 forms(2 windows). In first window,I have a tree view (the childs are the tables in DB.). On click of a any child, a list view(the data present in the table ) will be displayed on the right side of the tree view. On double clicking on any row in the list view, another form will be opened. The cur...

How might I import data from MS-Excel into Sql Server using ASP.NET?

I need to import data from Excel to Sql Server using ASP.NET. How can I do this? ...