daveyisu
03-04-04, 11:15 PM
I'm new to VB.NET so I'm having a great deal of difficulty adapting. My VB experience isn't all that deep in general, but I have a good idea for the most part of how the code works. Recently I wrote some code to perform file conversions and also call C .dll files to perform some complex mathematics (Fourier transforms and the like).
I wrote the original code in VB6, but now I want to compile it into an .exe so I was going to use Visual studio .net.
I guess my first question is whether this is my best path for me to take? If there would be an easier way for me to compile my VB6 code into an .exe I'm up for it. If not I'm led into my second question.
I used a userform in VB6 to make the user inputs much clearer. The code also performs three separate functions, so I used options buttons etc. to make this all work. It was easy for me to figure out the syntax for utilizing the form. Part of my code was similar to:
dim inputfile as string
inputfile = userform1.TextBox1.value
Open (inputfile) For Input As #1
This code won't work in .NET as I'm sure you're all aware. Could someone please tell me how I would go about making it comparable?
*Note* The same sort of thing applies to optionbuttons. I realize they are radiobuttons in .NET, but code such as:
If (userform1.optionbutton1.value = true) then
won't compile in .NET.
I realize this post has gotten really long, but I would greatly appreciate any insight.
Thanks ahead of time
David
I wrote the original code in VB6, but now I want to compile it into an .exe so I was going to use Visual studio .net.
I guess my first question is whether this is my best path for me to take? If there would be an easier way for me to compile my VB6 code into an .exe I'm up for it. If not I'm led into my second question.
I used a userform in VB6 to make the user inputs much clearer. The code also performs three separate functions, so I used options buttons etc. to make this all work. It was easy for me to figure out the syntax for utilizing the form. Part of my code was similar to:
dim inputfile as string
inputfile = userform1.TextBox1.value
Open (inputfile) For Input As #1
This code won't work in .NET as I'm sure you're all aware. Could someone please tell me how I would go about making it comparable?
*Note* The same sort of thing applies to optionbuttons. I realize they are radiobuttons in .NET, but code such as:
If (userform1.optionbutton1.value = true) then
won't compile in .NET.
I realize this post has gotten really long, but I would greatly appreciate any insight.
Thanks ahead of time
David