Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi,

 

I hope this is posted in the right place, but I'm just starting to use c#.net rather than VB6 and getting stuck on basic issues, or I am being an idiot.

 

In VB6 if I have on form Main a string called StrMine I can pass a value from another form by using Main.StrMine="myinfo", but for some reason C#.net wont let me do the same thing.

 

Is there a particular way I should be referencing this or am I just making a terrible hash of it. If you've got any advice I'd be grateful.

 

Cheers,

Sparky.

  • Leaders
Posted
And, no, you aren't being an idiot. One of the biggest criticisms of VB6 is that it teaches "bad habits." It uses "dumbed down" and uncommon techniques that are not usually there in other languages, not even other versions of BASIC. 90% of these peculiarities were eliminated in VB.NET (and kept out of its close cousin, C#), but the end result is that it is significantly different which can pose a challenge. Good luck with the cross-over.
[sIGPIC]e[/sIGPIC]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...