shayan_rezvani
asked on
How We can find all the Component in a Form
How We can find all the Component in a Form
such as SqlConnection,MainMenu,Pro cess ,etc...
tanks
such as SqlConnection,MainMenu,Pro
tanks
ASKER
this method can not find the component such as sqlConnection or MainMenu
helpme please
helpme please
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I Want to do that in DesignTime in Designer
tanks
tanks
What kind of designer are you creating?
Bob
Bob
ASKER
Form Designer
Can you find a ContainedControls collection? Does this collection contain the MainMenu control?
Bob
Bob
ASKER
no
no
no
First of all, I don't back away too often from a challenge :)
Secondly, I have not implemented a Forms Designer.
Thirdly, I don't have any idea of how to do this, but it forces me to research.
WinForms implement the IContainer interface, with the Container property. The IContainer has a Components collection.
Does this get us anywhere?
Bob
Secondly, I have not implemented a Forms Designer.
Thirdly, I don't have any idea of how to do this, but it forces me to research.
WinForms implement the IContainer interface, with the Container property. The IContainer has a Components collection.
Does this get us anywhere?
Bob
ASKER
Dear Friend
I think there is a Malentendu :(
I want Just to Find the Component in DesignTime
I think there is a Malentendu :(
I want Just to Find the Component in DesignTime
{
Console.WriteLine(current.
}
Bob