public class Meniu
{
Button button1, button2;
public Meniu()
{
button1 = new Button();
button1.Parent = ;
button1.Text = "Test nou";
button2 = new Button();
button2.Parent = Form1;
button2.Text = "Incarca test";
}
}
I have this code... I think you understand what i want to do.
This is a class and i had declared 2 buttons and in the constructer i make them.
But the how can i put theme on the form? it give me error at the "this" and "Form1"
Ty for you're time :D
FroglegPosted Mar 1, 2011, 5:36 PM
Suthish NairPosted Mar 2, 2011, 3:08 AM
Raul JuncPosted Mar 1, 2011, 6:07 PM
Raul JuncPosted Mar 1, 2011, 5:07 PM
FroglegPosted Mar 1, 2011, 5:03 PM
Raul JuncPosted Mar 1, 2011, 5:00 PM
FroglegPosted Mar 1, 2011, 4:58 PM