Click here to Skip to main content
15,906,708 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: How can I copy a treeView to listBox? [modified] Pin
AngryC8-Jul-06 21:08
AngryC8-Jul-06 21:08 
Worked like a charm! Many thanks.

Can I ask you another question? Blush | :O

I have a self joined table named: Category. It contains 3 columns only: CAT_ID, PARENT_CAT_ID and Title. I'm using a data reader to get the categories from the database as follow:

while (dbReader.Read())
{
Title = (string)dbReader["Title"];
CAT_ID = (int)dbReader["CAT_ID"];
PARENT_CAT_ID = (int)dbReader["PARENT_CAT_ID"];

// MessageBox.Show(Title); <- Working!!!
}

Can you please tell me how can I populate a treeview recursivley with the data I pulled from the database?

I would appreciate any help.

-- modified at 3:08 Sunday 9th July, 2006
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 
GeneralRe: semi-transparent image Pin
Guffa8-Jul-06 11:55
Guffa8-Jul-06 11:55 

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.