enginious Posted January 9, 2007 Posted January 9, 2007 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. Quote
Administrators PlausiblyDamp Posted January 9, 2007 Administrators Posted January 9, 2007 http://www.xtremedotnettalk.com/showthread.php?t=83092 explains this with vb.net - the c# isn't too different though. http://www.xtremedotnettalk.com/showthread.php?t=97057 should also help with any conversion issues you might have. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
enginious Posted January 9, 2007 Author Posted January 9, 2007 Thanks Thanks for the links, I'll have a good read through both of them and see how I get on. Thanks for taking the time to reply. Sparky. Quote
Leaders snarfblam Posted January 9, 2007 Leaders Posted January 9, 2007 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. Quote [sIGPIC]e[/sIGPIC]
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.