Click here to Skip to main content
15,914,500 members
Home / Discussions / C#
   

C#

 
QuestionHello Pin
anu91430-Oct-07 4:16
anu91430-Oct-07 4:16 
AnswerRe: Hello Pin
Malcolm Smart30-Oct-07 4:18
Malcolm Smart30-Oct-07 4:18 
AnswerRe: Hello Pin
Luc Pattyn30-Oct-07 4:56
sitebuilderLuc Pattyn30-Oct-07 4:56 
AnswerRe: Hello Pin
Paul Conrad30-Oct-07 6:21
professionalPaul Conrad30-Oct-07 6:21 
QuestionFlickering effect Pin
AB777130-Oct-07 3:49
AB777130-Oct-07 3:49 
AnswerRe: Flickering effect Pin
il_masacratore30-Oct-07 3:57
il_masacratore30-Oct-07 3:57 
GeneralRe: Flickering effect Pin
Christian Wikander30-Oct-07 4:21
Christian Wikander30-Oct-07 4:21 
QuestionGet the list of Controls in the windows application Pin
Huzefa_Incredible30-Oct-07 3:42
Huzefa_Incredible30-Oct-07 3:42 
Hi guys,
I am having a problem in my application..the prob is that i wanna get the list
of controls on the other form...so what i have done is that
1> I have instantiate the form of which i wanna get the Control list
2> Recurse through a foreach loop and get each control and put the details in a XML file..

Now the main prob that is arising is that the controls are comin i the form in any order(ie textbox,button,textbox etc) and i want to recurse in the order of top to bottom and left to right(ie first label then textbox then again a label and then textbox and so on).

the i have implemented is


Code: ( text )
Form2 frm = new Form2();
            
            foreach (System.Windows.Forms.Control ctr in frm.Controls)
{
.....//some codes here
}

if anyone can help plz reply and for further clarification do reply....


.Net Developer

AnswerRe: Get the list of Controls in the windows application Pin
il_masacratore30-Oct-07 3:55
il_masacratore30-Oct-07 3:55 
GeneralRe: Get the list of Controls in the windows application Pin
pmarfleet30-Oct-07 4:05
pmarfleet30-Oct-07 4:05 
GeneralRe: Get the list of Controls in the windows application Pin
Huzefa_Incredible30-Oct-07 4:10
Huzefa_Incredible30-Oct-07 4:10 
GeneralRe: Get the list of Controls in the windows application Pin
Christian Wikander30-Oct-07 4:30
Christian Wikander30-Oct-07 4:30 
GeneralRe: Get the list of Controls in the windows application Pin
Huzefa_Incredible30-Oct-07 4:42
Huzefa_Incredible30-Oct-07 4:42 
GeneralRe: Get the list of Controls in the windows application Pin
Christian Wikander30-Oct-07 4:47
Christian Wikander30-Oct-07 4:47 
Questionprofile object manage in asp.net Pin
ganesh197530-Oct-07 2:44
ganesh197530-Oct-07 2:44 
QuestionDisplaying "String" in a DatagridView Column with "int" DataType Pin
Assaf8230-Oct-07 2:41
Assaf8230-Oct-07 2:41 
AnswerRe: Displaying "String" in a DatagridView Column with "int" DataType Pin
pmarfleet30-Oct-07 2:56
pmarfleet30-Oct-07 2:56 
GeneralRe: Displaying "String" in a DatagridView Column with "int" DataType Pin
Assaf8230-Oct-07 3:52
Assaf8230-Oct-07 3:52 
GeneralRe: Displaying "String" in a DatagridView Column with "int" DataType Pin
pmarfleet30-Oct-07 4:02
pmarfleet30-Oct-07 4:02 
GeneralRe: Displaying "String" in a DatagridView Column with "int" DataType Pin
Assaf8230-Oct-07 4:26
Assaf8230-Oct-07 4:26 
GeneralRe: Displaying "String" in a DatagridView Column with "int" DataType Pin
pmarfleet30-Oct-07 5:31
pmarfleet30-Oct-07 5:31 
AnswerRe: Displaying "String" in a DatagridView Column with "int" DataType Pin
Herman<T>.Instance30-Oct-07 3:44
Herman<T>.Instance30-Oct-07 3:44 
GeneralRe: Displaying "String" in a DatagridView Column with "int" DataType Pin
Assaf8230-Oct-07 4:09
Assaf8230-Oct-07 4:09 
GeneralRe: Displaying "String" in a DatagridView Column with "int" DataType Pin
DavidNohejl30-Oct-07 4:30
DavidNohejl30-Oct-07 4:30 
GeneralRe: Displaying "String" in a DatagridView Column with "int" DataType Pin
Herman<T>.Instance30-Oct-07 4:43
Herman<T>.Instance30-Oct-07 4:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.