Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
GeneralRe: Does anybody have the C# Sorted ListView by Carlos H. Perez Pin
J. Dunlap27-Dec-04 10:08
J. Dunlap27-Dec-04 10:08 
GeneralPlay Sound from Memory Pin
notacake27-Dec-04 8:29
notacake27-Dec-04 8:29 
GeneralRe: Play Sound from Memory Pin
Heath Stewart27-Dec-04 19:52
protectorHeath Stewart27-Dec-04 19:52 
GeneralRe: Play Sound from Memory Pin
notacake28-Dec-04 2:22
notacake28-Dec-04 2:22 
GeneralRe: Play Sound from Memory Pin
Heath Stewart28-Dec-04 5:20
protectorHeath Stewart28-Dec-04 5:20 
GeneralRe: Play Sound from Memory Pin
notacake28-Dec-04 7:16
notacake28-Dec-04 7:16 
GeneralRe: Play Sound from Memory Pin
Heath Stewart28-Dec-04 7:19
protectorHeath Stewart28-Dec-04 7:19 
GeneralTraversing a parent-child chain... Pin
new_phoenix27-Dec-04 8:10
new_phoenix27-Dec-04 8:10 
I have an assignment to traverse a parent-child chain of controls that are arranged so that the master parent has one child, and then that child has a child, and then that child has one child, and then that child has one child. In other words, the arrangement is similar to that of a russian doll, where there is a hollow man, which contains another hollow man, and so on until you reach the center. Now the code, the code is all incorporated inside of a single click event. Would it be similar to?

private int ctrl_click(object sender, EventArgs e)
{
Control ctrl_hold;
int intControlCounter = 1;

while (ctrl.HasChildren == true)
{
if (ctrl.HasChildren)
{
intControlCounter += 1;
ctrl_hold = ctrl;
}
else
{
exit while;
}
}
}

When there is a control arranged in a chain of parent-child relationships, even if there were code such as: ctrl.HasChildren.count, it would only return a result of 1. How would I traverse the chain of controls arranged in such a way and come back with a result of the number of controls? Would REALLY APPRECIATE some assistance, as Microsoft did not document the parent-child relationship code very well.
GeneralRe: Traversing a parent-child chain... Pin
Robert Rohde27-Dec-04 8:53
Robert Rohde27-Dec-04 8:53 
GeneralRe: Traversing a parent-child chain... Pin
new_phoenix29-Dec-04 15:37
new_phoenix29-Dec-04 15:37 
GeneralAbout timers... Pin
sagmam27-Dec-04 8:06
sagmam27-Dec-04 8:06 
GeneralRe: About timers... Pin
Dennis C. Dietrich27-Dec-04 8:49
Dennis C. Dietrich27-Dec-04 8:49 
GeneralRe: About timers... Pin
sagmam27-Dec-04 21:02
sagmam27-Dec-04 21:02 
Generalcombo box Pin
webhay27-Dec-04 7:53
webhay27-Dec-04 7:53 
GeneralRe: combo box Pin
AVaka27-Dec-04 17:37
AVaka27-Dec-04 17:37 
GeneralStore Multiple Objects - XML Serialization Pin
Jedimark27-Dec-04 6:21
Jedimark27-Dec-04 6:21 
GeneralRe: Store Multiple Objects - XML Serialization Pin
Robert Rohde27-Dec-04 8:08
Robert Rohde27-Dec-04 8:08 
GeneralMicrosoft Loopback Adapter Pin
Member 157147527-Dec-04 3:08
Member 157147527-Dec-04 3:08 
GeneralUpdation issue Pin
sreejith ss nair27-Dec-04 1:00
sreejith ss nair27-Dec-04 1:00 
GeneralDrawing images on a panel Pin
Nitin Jain26-Dec-04 23:47
Nitin Jain26-Dec-04 23:47 
GeneralRe: Drawing images on a panel Pin
Robert Rohde27-Dec-04 4:40
Robert Rohde27-Dec-04 4:40 
GeneralRe: Drawing images on a panel Pin
ninja260528-Dec-04 1:43
ninja260528-Dec-04 1:43 
QuestionCan I remote an abstract class with Remoting Pin
Mohammed Aijaz Mohiuddin26-Dec-04 23:16
Mohammed Aijaz Mohiuddin26-Dec-04 23:16 
AnswerRe: Can I remote an abstract class with Remoting Pin
leppie27-Dec-04 0:47
leppie27-Dec-04 0:47 
AnswerRe: Can I remote an abstract class with Remoting Pin
Kodanda Pani27-Dec-04 20:10
Kodanda Pani27-Dec-04 20:10 

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.