maz

maz

  • NA
  • 1
  • 0

how do you apply a class

Feb 16 2007 2:06 PM
hello all, I am new with C# and stuck on some coursework. I have created a class: public class student { //start of class declaration public string name="Jane Doe"; public string course="Multimedia and Internet Systems"; public string email="[email protected]"; } how do I apply the class to a textbox so that when the user selects one of the details say name then the name will appear in the textbox. or am i doing something completely wrong with the class? i am using a main menu in the application, so when the user selects name from the menu it will display in the textbox. i am using MS Visual Studio .NET 2003 any help would be greatly appreciated