Software Development Network>> Visual C#>> Newbie Question
I do something like,
FormClassName frmstart = new FormClassName();
frmStart.Show();
Jeff
public partial class Form1: Form { Form2 f2; public MainWindow() { InitializeComponent(); f2 = new Form2(); f2.Visible = false; }
private void button1_Click(object sender, EventArgs e) { f2.Visible = true; } }
s/MainWindow/Form1
Sorry about that, I had a differnt name for the form, I thought I changed all occurances.
And you can also do f2.Show(), it does the same thing.
Newbie Question
Victor F Rodriguez
I do something like,
FormClassName frmstart = new FormClassName();
frmStart.Show();
Jeff
Haicheng
public partial class Form1: Form
{
Form2 f2;
public MainWindow()
{
InitializeComponent();
f2 = new Form2();
f2.Visible = false;
}
private void button1_Click(object sender, EventArgs e)
{
f2.Visible = true;
}
}
(H)MICHAEL(H)
s/MainWindow/Form1
Sorry about that, I had a differnt name for the form, I thought I changed all occurances.
And you can also do f2.Show(), it does the same thing.
ale_vera_0603
public partial class Form1: Form
{
Form2 f2;
public MainWindow()
{
InitializeComponent();
f2 = new Form2();
f2.Visible = false;
}
private void button1_Click(object sender, EventArgs e)
{
f2.Visible = true;
}
}