Two simple questions.
Posted on 2002-07-26
I just turn from VB6 to C# and have a few questions:
1. In VB, I can write global functions and varables for all forms in a standard module, where should I put those thing for C#. Should I write them in a class and make them all static? If not static, is it too troublesome to instanate that class everytime I use the methods?
2. In VB, I can refer to a form control by "formname.controlname", how can I do this in C#? Can I refer to the control inside a static method?