I am new to VB.NET. I used to do my programming in the previous version ,which is vb6. My question is, how do i create an array of some object in .NET version. For example, i want to create an array of buttons. In vb6, i just click copy/paste and then vb will asks me whether i want it to be an array or just another button. what about in VB.NET?
Good question. I don’t use Visual Studio, so I really don’t know. I’d assume so. The VB6 runtimes are totally different than the .NET CLR and both use different compilers.
You will be able to use VB.NET and VB6 on the same machine with no problems. They are in effect entirely different development platforms and the only thing they have in common is their (crazy-white-space-sensitive) syntax.
Seriously, if you get the chance try having a go with C# - a vastly superior language syntax.
You can install both. No problems. I have them both running on my TR in fact, along with SQL Server 2000, Office 2003, and the whole Macromedia suite of products.
Control Arrays are gone. At first it was tough to get used to, but now I don’t even miss them at all. If you run into an issue where you need a workaround, post it here and I’d be happy to help.
As an aside—try going right to C# instead of VB.NET. It’s a great language and it seems like microsoft wants to slowly move everything towards it eventually. Of course, if you are doing stuff just for yourself and it’s not your profession, stick with whatever you want!
Take care.
EDIT: I posted this apparently at the same time as the last two posters. I did not intend to repeat what they already said.
If you are talking about the .NET runtime, then installing it will have no impact at all on the performance of existing applications. The .NET runtime is only used for applications specifically targetted to run on it.
[quote author=“jtu100”]Seriously, if you get the chance try having a go with C# - a vastly superior language syntax.
Agreed. C# and Java (it’s older brother) are great programming languages. I cut my teeth in college on C/C++, so programming ASP pages in VB was painful. C# feels familiar to C++ without keeping a lot of the sytactic crazyness that makes true C-derived languages so “fun”.
[quote author=“Drachen”][quote author=“jtu100”]Seriously, if you get the chance try having a go with C# - a vastly superior language syntax.
Agreed. C# and Java (it’s older brother) are great programming languages. I cut my teeth in college on C/C++, so programming ASP pages in VB was painful. C# feels familiar to C++ without keeping a lot of the sytactic crazyness that makes true C-derived languages so “fun”.
Why don’t you write ASP.NET with C# behind?
I hate C#...I use it at work, for me VB is so much kinder, especially with CaSe which is my downfall because i’d rather just type faster.
[quote author=“tifosiv122”]Why don’t you write ASP.NET with C# behind?
I hate C#...I use it at work, for me VB is so much kinder, especially with CaSe which is my downfall because i’d rather just type faster.
Erik
I do use C#. The VB I was using was technically VBScript with ASP 3.0. I guess coming from a C background, the case-sensitive-ness of C# doesn’t really bother me much. MS in general is very good about consistant capitalization with their framework. The two things that really turned me off from VB besides its general verboseness are the ctype function and (as mentioned above) the fact that it doesn’t ignore newlines in the code.
[quote author=“Drachen”][quote author=“tifosiv122”]Why don’t you write ASP.NET with C# behind?
I hate C#...I use it at work, for me VB is so much kinder, especially with CaSe which is my downfall because i’d rather just type faster.
Erik
I do use C#. The VB I was using was technically VBScript with ASP 3.0. I guess coming from a C background, the case-sensitive-ness of C# doesn’t really bother me much. MS in general is very good about consistant capitalization with their framework. The two things that really turned me off from VB besides its general verboseness are the ctype function and (as mentioned above) the fact that it doesn’t ignore newlines in the code.
I guess it really depends on what you learned first.
I learned VB first, then C…then ASP. When I went to ASP I was more familiar with VB and ASP just reinforced it.
Don’t get me wrong, I see the advantages of C…I just hate the case aspect, to me, its a real turn-off.