switching over to .NET

  • Thread starter Thread starter sticksbs
  • Start date Start date
S

sticksbs

Guest
Hi all,

For the last year Ive been using/learning VB 6. And certain things have led me to consider switching to VB .NET. The main one of all things is basically the difference in asthetical design. Having the mouseHover option which VB 6 doesnt have is a big bonus to me, mainly just cause it makes things look nice :) However im not sure how fast it will be with image swapping and stuff of that sort.

Also Im not sure if VB .NET has more options such as transparent backgrounds for controls such as the listbox or the textbox, or do I still have to do all the subclassing and painting the backgrounds manually.

I cant remember where, but i read something saying how .NET does not create standard win32 files. Are there any restrictions I should know about, in terms of compatibility, reliability etc...

And the last thing is are there any advantages or disadvantages of using VC# instead of VB, they seem to essentially have convered in funtionality. The only reason I would prefer C# is becuase Ive done a lot of C/C++ programming, and the code structure just seems more natural. Actually JScript seems like the best option as I really like Javas coding structure, however Im not sure how similar JScript is to C# and VB .NET

Im sorry if these seem like novice questions or whatever, I just wanna get a feel of what might be the best route for me before I purchase more design products.

Thanks for your help.
 
Sorry just realized why I wasnt considering JScript, because its a scripting language. I think I was actually thinking of J#, however although this might allow for cross-platform use, I dont think im willing to cut down on efficiency with an interpretor.
 
If you know C syntax and VB syntax, you can pretty much interchange between VB.NET and C# as much as you like. Youll feel at home with both.

.NET executables require than the .NET framework runtimes are present on the computer, thats the only restriction. A very small price to pay for the benefits the framework provides. I dont know of anyone actually doing anything with JScript, so I cant say anything about that.

Subclassing is vastly easier and mostly unnecessary in .NET. The kind of subclassing you mean, anyway. It is possible to do real subclassing (inheriting and overriding) with .NET, and a lot of the controls are geared so that programmers can owner-draw them anyway. Transparent backgrounds are supported.
 
Thanks for the response divil,

I think ill be switching over to either VB or C#, I think the other benefit that is really attracting me is the exception handling, much more programmer friendly at least for me, since i never understood VB6s error handling that well, but im pretty confortable with try-catch-finally blocks.

Forgot to ask something though, how does .NETs use of form resizing work. I know I had to create many functions to resize and reposition my forms and all the controls within them in VB6. I heard that .NET has some anchoring properties and scaling properties that can be set so that when the form resizes all the controls within the form resize??? Is this correct or am I still dreaming, and will have to continue to use my own methods to do this?

Thanks again for your time...
 
What you heard is correct, .NET Windows Forms have properties which, in the vast majority of situation, provide all you need to tell controls how to resize themselves automatically. It really is very good.
 
Back
Top