Click here to Skip to main content
15,921,467 members
Home / Discussions / C#
   

C#

 
AnswerRe: Remote Desltop Connection Question Pin
Vasudevan Deepak Kumar19-Mar-07 6:30
Vasudevan Deepak Kumar19-Mar-07 6:30 
AnswerRe: Remote Desltop Connection Question Pin
Mike Dimmick19-Mar-07 6:37
Mike Dimmick19-Mar-07 6:37 
GeneralRe: Remote Desltop Connection Question Pin
Sautin.net19-Mar-07 6:40
Sautin.net19-Mar-07 6:40 
AnswerRe: programming in c# Pin
joon vh.19-Mar-07 5:48
joon vh.19-Mar-07 5:48 
GeneralRe: programming in c# Pin
Sautin.net19-Mar-07 6:16
Sautin.net19-Mar-07 6:16 
GeneralRe: programming in c# [modified] Pin
joon vh.19-Mar-07 6:02
joon vh.19-Mar-07 6:02 
GeneralRe: programming in c# Pin
Sautin.net19-Mar-07 11:09
Sautin.net19-Mar-07 11:09 
QuestionImageLists and TreeView Pin
sinosoidal19-Mar-07 5:00
sinosoidal19-Mar-07 5:00 
Hi,

I'm adding TreeView nodes in the following way:
<br />
foreach (System.IO.DirectoryInfo di in dirs) {<br />
  inTreeNode.Nodes.Add(new TreeNode(di.Name));<br />
<br />
  ...<br />
}<br />


But now i want to put custom icon, so i added a ImageList and i searched for the overloaded method which permits me to select the icon index:

<br />
inTreeNode.Nodes.Add(new TreeNode(di.Name));<br />
inTreeNode.Nodes.Add(di.Name, di.Name, this.folderIndex);<br />


The thing is that the overloaded method doesnt accept a TreeNode as parameter, so i have first created the node and then made the association with the image index i want.

This didnt worked as now i have two copies of the same node with different icons. How can i solve this?

Thx,

Nuno
AnswerRe: ImageLists and TreeView Pin
joon vh.19-Mar-07 5:35
joon vh.19-Mar-07 5:35 
GeneralRe: ImageLists and TreeView Pin
sinosoidal19-Mar-07 5:43
sinosoidal19-Mar-07 5:43 
GeneralRe: ImageLists and TreeView Pin
joon vh.19-Mar-07 5:47
joon vh.19-Mar-07 5:47 
GeneralRe: ImageLists and TreeView Pin
sinosoidal19-Mar-07 5:52
sinosoidal19-Mar-07 5:52 
GeneralRe: ImageLists and TreeView Pin
joon vh.19-Mar-07 5:54
joon vh.19-Mar-07 5:54 
GeneralRe: ImageLists and TreeView Pin
sinosoidal19-Mar-07 5:58
sinosoidal19-Mar-07 5:58 
QuestionThread Safety in Generic Collections Pin
SakthiSurya19-Mar-07 4:08
SakthiSurya19-Mar-07 4:08 
AnswerRe: Thread Safety in Generic Collections Pin
Ennis Ray Lynch, Jr.19-Mar-07 4:15
Ennis Ray Lynch, Jr.19-Mar-07 4:15 
Questionhow to get popup like yahoo chat? Pin
joerozario19-Mar-07 3:56
joerozario19-Mar-07 3:56 
AnswerRe: how to get popup like yahoo chat? Pin
joon vh.19-Mar-07 4:09
joon vh.19-Mar-07 4:09 
Questioncontext menu and it's (custom) position Pin
VirtualVoid.NET19-Mar-07 3:45
VirtualVoid.NET19-Mar-07 3:45 
AnswerRe: context menu and it's (custom) position Pin
occcy19-Mar-07 4:42
occcy19-Mar-07 4:42 
Questioninvoking process at the romote system Pin
joerozario19-Mar-07 3:25
joerozario19-Mar-07 3:25 
AnswerRe: invoking process at the romote system Pin
Dave Kreskowiak19-Mar-07 3:37
mveDave Kreskowiak19-Mar-07 3:37 
GeneralRe: invoking process at the romote system Pin
joerozario19-Mar-07 3:49
joerozario19-Mar-07 3:49 
GeneralRe: invoking process at the romote system Pin
Dave Kreskowiak19-Mar-07 12:56
mveDave Kreskowiak19-Mar-07 12:56 
AnswerRe: invoking process at the romote system Pin
originSH19-Mar-07 4:47
originSH19-Mar-07 4:47 

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.