Click here to Skip to main content
16,008,010 members
Home / Discussions / C#
   

C#

 
GeneralRe: How can I build a ListBox array? Pin
Pete O'Hanlon19-Mar-07 2:20
mvePete O'Hanlon19-Mar-07 2:20 
QuestionTreeView Pin
sinosoidal19-Mar-07 0:21
sinosoidal19-Mar-07 0:21 
AnswerRe: TreeView Pin
JoeSharp19-Mar-07 0:32
JoeSharp19-Mar-07 0:32 
GeneralRe: TreeView Pin
sinosoidal19-Mar-07 0:37
sinosoidal19-Mar-07 0:37 
AnswerRe: TreeView Pin
sinosoidal19-Mar-07 0:49
sinosoidal19-Mar-07 0:49 
GeneralRe: TreeView Pin
joon vh.19-Mar-07 1:15
joon vh.19-Mar-07 1:15 
GeneralRe: TreeView Pin
sinosoidal19-Mar-07 5:12
sinosoidal19-Mar-07 5:12 
GeneralRe: TreeView Pin
joon vh.19-Mar-07 5:31
joon vh.19-Mar-07 5:31 
I think one of your problems lies here:

tNode = inTreeNode.Nodes[level];

I looked into it (yes I have too much time) and that's the only line I couldn't really get. There is no relation between the level variable, and the position of the desired node in the nodes Array.
You should instead use this, I think (works here, with c:\temp dir):

<br />
                foreach (System.IO.DirectoryInfo di in dirs)<br />
                {<br />
                    TreeNode tn = new TreeNode(di.Name);<br />
<br />
                    //inTreeNode.Nodes.Add(di.Name, di.Name, this.folderIndex);<br />
<br />
                    populateTree(root + @"\" + di.Name, tn, level + 1);<br />
<br />
                    inTreeNode.Nodes.Add(tn);<br />
                }<br />


Also, I wouldn't use recursion, because it makes your code needlessly complicated




public object BufferOverFlow<br />
        {<br />
__get { return BufferOverFlow; }<br />
__set { BufferOverFlow = value; }<br />
}

QuestionHow to store sensitive data? Pin
Akiratf19-Mar-07 0:20
Akiratf19-Mar-07 0:20 
AnswerRe: How to store sensitive data? Pin
joon vh.19-Mar-07 1:06
joon vh.19-Mar-07 1:06 
AnswerRe: How to store sensitive data? Pin
m@u19-Mar-07 4:21
m@u19-Mar-07 4:21 
AnswerRe: How to store sensitive data? Pin
Vasudevan Deepak Kumar19-Mar-07 6:32
Vasudevan Deepak Kumar19-Mar-07 6:32 
AnswerRe: How to store sensitive data? Pin
Akiratf19-Mar-07 22:04
Akiratf19-Mar-07 22:04 
QuestionReading value from a variabile Pin
Andrei Ungureanu19-Mar-07 0:13
Andrei Ungureanu19-Mar-07 0:13 
AnswerRe: Reading value from a variabile Pin
Pete O'Hanlon19-Mar-07 0:17
mvePete O'Hanlon19-Mar-07 0:17 
GeneralRe: Reading value from a variabile Pin
Andrei Ungureanu19-Mar-07 0:30
Andrei Ungureanu19-Mar-07 0:30 
GeneralRe: Reading value from a variabile Pin
Colin Angus Mackay19-Mar-07 0:39
Colin Angus Mackay19-Mar-07 0:39 
GeneralRe: Reading value from a variabile Pin
Andrei Ungureanu19-Mar-07 0:47
Andrei Ungureanu19-Mar-07 0:47 
GeneralRe: Reading value from a variabile Pin
Pete O'Hanlon19-Mar-07 0:55
mvePete O'Hanlon19-Mar-07 0:55 
GeneralRe: Reading value from a variabile Pin
Colin Angus Mackay19-Mar-07 0:56
Colin Angus Mackay19-Mar-07 0:56 
GeneralRe: Reading value from a variabile Pin
Pete O'Hanlon19-Mar-07 1:01
mvePete O'Hanlon19-Mar-07 1:01 
GeneralRe: Reading value from a variabile Pin
Colin Angus Mackay19-Mar-07 0:55
Colin Angus Mackay19-Mar-07 0:55 
GeneralRe: Reading value from a variabile Pin
Andrei Ungureanu19-Mar-07 1:00
Andrei Ungureanu19-Mar-07 1:00 
AnswerRe: Reading value from a variabile Pin
Colin Angus Mackay19-Mar-07 0:37
Colin Angus Mackay19-Mar-07 0:37 
AnswerRe: Reading value from a variabile Pin
Ennis Ray Lynch, Jr.19-Mar-07 4:17
Ennis Ray Lynch, Jr.19-Mar-07 4:17 

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.