Communication between forms

  • Thread starter Thread starter Dave Mc
  • Start date Start date
D

Dave Mc

Newbie to .NET question
I have a form Form1 that will instantiate and show a second form
Form2. Form2 has a slidder control that I want to use to update a
value of an activeX control on Form1.
How the heck is this done. In a regular Windows app in C++ I could
just post a message in VB I could call an event on the other form. In
C# .NET???? I am lost. Would some kind sole please show me the way?
 
You can throw events in C# too, or you can pass the Form1 reference to
Form2 when you create it.

Form2 newForm = new Form2(this);

public Form2(Form1 parent)
{
}
 
Back
Top