Squabbi Kong

Squabbi Kong

  • NA
  • 7
  • 16.7k

Use controls from other forms

Oct 7 2013 5:54 AM
Hi there,

I'm in needing of help of using controls from another form. Here is what I want to use it in:

if (form2.checkbox1.IsChecked)
{
messagebox.Show("Form2 Checkbox1 is selected!");
}

But it doesn't show the controls on form2 when I type:

 private void Window_Loaded(object sender, RoutedEventArgs e)
        {
         Form2.
        }

Any help will be greatly appreciated! :)

Answers (2)