C Board  

Go Back   C Board > General Programming Boards > C# Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 07-02-2002, 04:07 AM   #1
Registered User
 
Join Date: Sep 2001
Posts: 173
accessibilty between 2 forms

Hi:
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   Reply With Quote
Old 07-02-2002, 07:02 AM   #2
the hat of redundancy hat
 
nvoigt's Avatar
 
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   Reply With Quote
Old 07-03-2002, 12:07 AM   #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   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 05:46 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22