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

FroglegRank #1,020 · 1.9K reputationPosted Mar 1, 2011, 12:36 PM EST
FroglegRank #1,020 · 1.9K reputationPosted Mar 1, 2011, 11:58 AM EST
Raul Junc15 reputationPosted Mar 1, 2011, 12:00 PM EST
FroglegRank #1,020 · 1.9K reputationPosted Mar 1, 2011, 12:03 PM EST
Raul Junc15 reputationPosted Mar 1, 2011, 12:07 PM EST
Raul Junc15 reputationPosted Mar 1, 2011, 1:07 PM EST
Suthish NairRank #92 · 22.8K reputationPosted Mar 1, 2011, 10:08 PM EST