![]() |
| | #1 |
| Registered User Join Date: Sep 2001
Posts: 173
| accessibilty between 2 forms If I created two forms in 1 solution, and I insert 1 button in Form1, how could I access this button in Form2? Thanx
__________________ Don't laugh at me,I am just a SuperNewbie. |
| SuperNewbie is offline | |
| | #2 |
| the hat of redundancy hat Join Date: Aug 2001 Location: Hannover, Germany
Posts: 2,769
| You need a variable ( perhaps by using a property ) that holds the button or better yet the whole first form. You can then access the button through this variable.
__________________ hth -nv She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate." When in doubt, read the FAQ. Then ask a smart question. |
| nvoigt is online now | |
| | #3 |
| Registered User Join Date: Sep 2001
Posts: 173
| yea,I got it, thanx
__________________ Don't laugh at me,I am just a SuperNewbie. |
| SuperNewbie is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Good introduction to Windows Forms? | jcafaro10 | C# Programming | 1 | 05-19-2009 06:11 PM |
| insert differnt forms in a single form under different tabs? and a textBox question | arian | C# Programming | 2 | 04-02-2009 04:40 AM |
| C# Game using Forms | ejohns85 | C# Programming | 1 | 12-16-2006 05:35 PM |
| Windows Forms and/or MFC [But definately not win32!] questions | Robert_Sitter | Windows Programming | 2 | 12-03-2005 09:28 PM |
| Which one :MFC, Win32, Windows Forms (.Net)? | Robert_Sitter | Windows Programming | 6 | 11-17-2005 06:15 AM |