i know how to add a class to my program, but i dont know how to link my main form to different classes, all the guides on the internet are hard to understand.
all i am trying to do is get a message box to pop up when i click button1, but the code for the message box is in class1.cs
so in the main form under button1 click what do i type?
in class1.cs i have the following
public Class1()
{
MessageBox.Show("Program developed by me Nov 2003", "Information");
}
thanks
if anyone knows of simple guides to writing in classes for C# preferably not console mode can you post below
all i am trying to do is get a message box to pop up when i click button1, but the code for the message box is in class1.cs
so in the main form under button1 click what do i type?
in class1.cs i have the following
public Class1()
{
MessageBox.Show("Program developed by me Nov 2003", "Information");
}
thanks
if anyone knows of simple guides to writing in classes for C# preferably not console mode can you post below