how to change properties of the main form from a another form 
Author Message
 how to change properties of the main form from a another form

Hello,

is it possible to change the propertys of the main form from another form?
I also need access to a few controls of the main form.

regards

Frank



Sun, 07 Nov 2004 01:51:29 GMT  
 how to change properties of the main form from a another form

Quote:
> is it possible to change the propertys of the main form from another form?
> I also need access to a few controls of the main form.

Sure.  The "other form" needs a reference to the main form.  Then, the
other controls need to be public or friend (if the other form is in the
same assembly).

A better way would be to have properties on the main form that abstract
the functionality of updating the controls (again, make the scope of the
properties public).

--
Patrick Steele
Microsoft .NET MVP



Tue, 09 Nov 2004 01:21:53 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. changing stuff in your main form from another form

2. Changing form-properties while running before loading the form

3. Changing Form's BorderStyle property at run time but before form is loaded

4. Using a main form to control the edit properties of a subform using VBA

5. How to change caption on a sub from text on main form

6. Unhandled exception in system.windows.forms.dll (in my main form) - argh

7. Help altering main form from other forms

8. maximize child form display multiple tool box controls on main form

9. create main form and Sub Form

10. Forms on top of Main Form

11. VB3: modal form gets hidden by main MDI form in Win98

12. How to auto size the main form/ MDI form

 

 
Powered by phpBB® Forum Software