2
Answers

Use controls from other forms

Squabbi Kong

Squabbi Kong

11y
944
1
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)