hi,
i work on windows application and i want to know how to use the components (textboxes,..) of a winform in another winform.
thanks
basma.lm
0
Junior Poster in Training
Recommended Answers
Jump to PostHere's an example:
Form1's Constructor:
Form2 form2; public Form1() { InitializeComponent(); form2 = new Form2(this); }
Form2's Constructor:
Form1 form1; public Form2(Form1 F) { InitializeComponent(); form1 = F; }
Now set the Modifiers property of the control (on any form) to "Public":
…
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.