Win Surprise Gifts!!!
Top 5 Contributors of the Month
Post New Question
Subscribe to Forum
Regarding Retrieve the Controls
July 30, 2009
How to retrieve the winform controls from another Form?
For Example i have winForm named as sample1,in which i want to write code for to retrieve controls of another form named as Sample2?
Is It Possible?
How to use control.controlcollection.find(formname)?
Posted Date: July 30, 2009 Points: 5
You can create the instance of the second form say Sample2 and using the object of the form you can get the control list
Sample2 oSample = new Sample2();
oSample.Controls // this will give all the controls available in Sample2
Posted Date: October 13, 2009 Points: 5
first u need to declare the second form(sample2) control as public and
after that u just create the object of sample2 and call sample2 form's control through the object
To post reply
Related Questions Related Questions
Can we use Web form controls in window form of Windows application
Multiple controls selection in VS2008
Visual Studio .Net 2008, There are no controls in the toolbox???
how we retrieve data on tab pressing Win App
how to set html attributes to asp.net controls
About get all Controls in a form
ASP.NET - Loading controls at one time (on application load)
Retrieve Image from Sql & Display in Gird
grid view, form view and detail view controls
Latest Forum Questions From The Same Category
database is read-only.
editor for visual basic with c#.net
How to get phone number in .Net windows application?
while accessing method from proxy giving an unauthorized access
How to make search between two dates accept null not obligatory search proplem
Create a Windows form application using Excel as database..
Recieve Data From Serial Com Port C# In One Line And Convert To integer
display parent data and child data as a row group in one datagridview using c# winform
enter key event in windows app c#.net
windows appplication c#.net
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more
Quick Links For Forum Categories:
Hall of Fame
Terms of Service
Tell A Friend