Click here to Skip to main content
15,904,339 members
Home / Discussions / C#
   

C#

 
GeneralRe: Data structure and exception Pin
Super Lloyd8-Jul-06 23:49
Super Lloyd8-Jul-06 23:49 
GeneralRe: Data structure and exception Pin
Super Lloyd8-Jul-06 23:52
Super Lloyd8-Jul-06 23:52 
AnswerRe: Data structure and exception Pin
Igor Sukhov8-Jul-06 23:58
Igor Sukhov8-Jul-06 23:58 
GeneralRe: Data structure and exception Pin
Super Lloyd9-Jul-06 0:08
Super Lloyd9-Jul-06 0:08 
QuestionHow to read file from a FTP site Pin
Zami_28-Jul-06 19:33
Zami_28-Jul-06 19:33 
AnswerRe: How to read file from a FTP site Pin
Ravi Bhavnani8-Jul-06 21:03
professionalRavi Bhavnani8-Jul-06 21:03 
QuestionHow can I copy a treeView to listBox? Pin
AngryC8-Jul-06 18:57
AngryC8-Jul-06 18:57 
AnswerRe: How can I copy a treeView to listBox? [modified] Pin
Andrew Lygin8-Jul-06 20:23
Andrew Lygin8-Jul-06 20:23 
Use recursion. Something like this:
private void FillListBox()
{
    foreach (TreeNode rootNode in treeView.Nodes)
    {
        AddSubtree(rootNode, string.Empty);
    }
}
<p/>
private void AddSubtree(TreeNode node, string prefix)
{
    listBox.Items.Add(prefix + node.Text);
    prefix += '>';

    foreach (TreeNode childNode in node.Nodes)
    {
        AddSubtree(childNode, prefix);
    }
}


-- modified at 2:24 Sunday 9th July, 2006
GeneralRe: How can I copy a treeView to listBox? [modified] Pin
AngryC8-Jul-06 21:08
AngryC8-Jul-06 21:08 
GeneralRe: How can I copy a treeView to listBox? Pin
Andrew Lygin8-Jul-06 22:14
Andrew Lygin8-Jul-06 22:14 
GeneralRe: How can I copy a treeView to listBox? [modified] Pin
AngryC9-Jul-06 6:30
AngryC9-Jul-06 6:30 
AnswerRe: How can I copy a treeView to listBox? Pin
Andrew Lygin9-Jul-06 20:03
Andrew Lygin9-Jul-06 20:03 
GeneralRe: How can I copy a treeView to listBox? Pin
AngryC9-Jul-06 20:26
AngryC9-Jul-06 20:26 
QuestionCTL+A Detection Pin
picasso28-Jul-06 15:43
picasso28-Jul-06 15:43 
AnswerRe: CTL+A Detection Pin
Judah Gabriel Himango8-Jul-06 16:59
sponsorJudah Gabriel Himango8-Jul-06 16:59 
GeneralRe: CTL+A Detection Pin
picasso28-Jul-06 17:40
picasso28-Jul-06 17:40 
GeneralRe: CTL+A Detection Pin
Judah Gabriel Himango8-Jul-06 17:47
sponsorJudah Gabriel Himango8-Jul-06 17:47 
GeneralRe: CTL+A Detection Pin
picasso28-Jul-06 19:15
picasso28-Jul-06 19:15 
GeneralRe: CTL+A Detection Pin
Judah Gabriel Himango9-Jul-06 10:28
sponsorJudah Gabriel Himango9-Jul-06 10:28 
AnswerRe: CTL+A Detection Pin
Andrew Lygin8-Jul-06 20:42
Andrew Lygin8-Jul-06 20:42 
AnswerRe: CTL+A Detection Pin
Super Lloyd8-Jul-06 22:01
Super Lloyd8-Jul-06 22:01 
QuestionMouse Position on startup Pin
StyrofoamSUV8-Jul-06 12:52
StyrofoamSUV8-Jul-06 12:52 
AnswerRe: Mouse Position on startup Pin
Ravi Bhavnani8-Jul-06 14:03
professionalRavi Bhavnani8-Jul-06 14:03 
GeneralRe: Mouse Position on startup Pin
StyrofoamSUV9-Jul-06 7:24
StyrofoamSUV9-Jul-06 7:24 
Questionsemi-transparent image Pin
alexiev_nikolay8-Jul-06 11:50
alexiev_nikolay8-Jul-06 11:50 

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.