Click here to Skip to main content
15,886,873 members
Home / Discussions / C#
   

C#

 
GeneralRe: ... just joking .... Pin
Software_Specialist12-Jan-07 5:09
Software_Specialist12-Jan-07 5:09 
AnswerHave a look at this Pin
Mircea Puiu12-Jan-07 4:49
Mircea Puiu12-Jan-07 4:49 
GeneralRe: Have a look at this Pin
Software_Specialist12-Jan-07 4:56
Software_Specialist12-Jan-07 4:56 
GeneralRe: Have a look at this Pin
Mircea Puiu12-Jan-07 5:01
Mircea Puiu12-Jan-07 5:01 
QuestionTreeNode.FullPath Pin
zaboboa12-Jan-07 3:19
zaboboa12-Jan-07 3:19 
AnswerRe: TreeNode.FullPath Pin
Seishin#12-Jan-07 3:34
Seishin#12-Jan-07 3:34 
GeneralRe: TreeNode.FullPath Pin
zaboboa12-Jan-07 4:04
zaboboa12-Jan-07 4:04 
AnswerRe: TreeNode.FullPath Pin
Mircea Puiu12-Jan-07 4:07
Mircea Puiu12-Jan-07 4:07 
Whenever you add a node, get its full path and store it into node's name.
<br />
TreeNode tn = this.treeView1.Nodes.Add("AAA");<br />
tn.Name = tn.FullPath;<br />


When you want to expand the node having, let's say, "The_wanted_path"
you use this:
TreeNode [] tn = this.treeView1.Nodes.Find("The_wanted_path", true);
if ( tn[0] != null )
{
	TreeNode Parent = tn[0].Parent;
	TreeNode FirstParent = Parent;
	while (Parent != null)
	{
		Parent = Parent.Parent;
		if (Parent != null) FirstParent = Parent;
	}
	tn[0].Expand();
	if (FirstParent != null) FirstParent.Expand();
}




SkyWalker

QuestionAssign items to DatagridView Combobox Cell Pin
Tyler4512-Jan-07 3:02
Tyler4512-Jan-07 3:02 
AnswerRe: Assign items to DatagridView Combobox Cell Pin
Tyler4512-Jan-07 3:54
Tyler4512-Jan-07 3:54 
QuestionLock ListView Colums Pin
Rapier50312-Jan-07 2:55
Rapier50312-Jan-07 2:55 
AnswerRe: Lock ListView Colums Pin
Mircea Puiu12-Jan-07 3:30
Mircea Puiu12-Jan-07 3:30 
QuestionCompare string and int Pin
szukuro12-Jan-07 2:26
szukuro12-Jan-07 2:26 
AnswerRe: Compare string and int Pin
Guffa12-Jan-07 2:41
Guffa12-Jan-07 2:41 
GeneralRe: Compare string and int [modified] Pin
szukuro12-Jan-07 3:27
szukuro12-Jan-07 3:27 
AnswerRe: Compare string and int Pin
Guffa14-Jan-07 12:15
Guffa14-Jan-07 12:15 
AnswerRe: Compare string and int Pin
Mircea Puiu12-Jan-07 2:41
Mircea Puiu12-Jan-07 2:41 
AnswerRe: Compare string and int Pin
CPallini12-Jan-07 2:42
mveCPallini12-Jan-07 2:42 
AnswerRe: Compare string and int Pin
Thomas Stockwell13-Jan-07 5:42
professionalThomas Stockwell13-Jan-07 5:42 
QuestionHow to add images into Dropdownlist Pin
prabhakaranns12-Jan-07 1:17
prabhakaranns12-Jan-07 1:17 
AnswerRe: How to add images into Dropdownlist Pin
stancrm12-Jan-07 2:05
stancrm12-Jan-07 2:05 
QuestionHow to use SDI(single document interface)? Pin
bug_aonz11-Jan-07 23:47
bug_aonz11-Jan-07 23:47 
AnswerRe: How to use SDI(single document interface)? Pin
Pete O'Hanlon12-Jan-07 0:58
mvePete O'Hanlon12-Jan-07 0:58 
AnswerRe: How to use SDI(single document interface)? Pin
Christian Graus12-Jan-07 1:19
protectorChristian Graus12-Jan-07 1:19 
Questionvalidating question Pin
rzvme11-Jan-07 23:42
rzvme11-Jan-07 23:42 

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.