R
RGwolf
Guest
Hello so i have 2 forms one called form1 and the other one formoverlay so i have a check box and im trying to do when i check it it would open the other form but i cant it doesnt work also i think its maybe the checkBoxShowOverlay because it says does snot exist anyway im only a beginer so i professianal should help
{
public partial class Form1 : Form
{
Form_Overlay frm = new Form_Overlay();
private object checkBoxShowOverlay;
public Form1()
{
InitializeComponent();
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
private void checkBox4_CheckedChanged(object sender, EventArgs e)
{
if(checkBoxShowOverlay.Checked == true)
{
frm.Show();
}
else
{
frm.Hide();
}
}
}
}
Continue reading...
{
public partial class Form1 : Form
{
Form_Overlay frm = new Form_Overlay();
private object checkBoxShowOverlay;
public Form1()
{
InitializeComponent();
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
private void checkBox4_CheckedChanged(object sender, EventArgs e)
{
if(checkBoxShowOverlay.Checked == true)
{
frm.Show();
}
else
{
frm.Hide();
}
}
}
}
Continue reading...