If you new up Class1 from Form1 you can do:
Class1 MyInstance = new Class1(this);
You need the constructor of Class1 to take a Window:
public Class1 ( Form CallerForm)
{ }
Then you can make that CallerForm ( which is Form1 ) do stuff.
If these are totally disconnected bits of code ( seems a bit unlikely ) you could use this technique:
No comments:
Post a Comment