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

C#

 
QuestionMoving files programatically Pin
naglbitur6-Apr-06 4:14
naglbitur6-Apr-06 4:14 
AnswerRe: Moving files programatically Pin
Judah Gabriel Himango6-Apr-06 4:28
sponsorJudah Gabriel Himango6-Apr-06 4:28 
GeneralRe: Moving files programatically Pin
naglbitur6-Apr-06 5:09
naglbitur6-Apr-06 5:09 
GeneralRe: Moving files programatically Pin
Judah Gabriel Himango6-Apr-06 5:16
sponsorJudah Gabriel Himango6-Apr-06 5:16 
QuestionDirectory listing Pin
wistiti56-Apr-06 3:51
wistiti56-Apr-06 3:51 
AnswerRe: Directory listing Pin
Judah Gabriel Himango6-Apr-06 4:37
sponsorJudah Gabriel Himango6-Apr-06 4:37 
QuestionTreeView dilema. Please Help! Pin
zaboboa6-Apr-06 3:43
zaboboa6-Apr-06 3:43 
AnswerRe: TreeView dilema. Please Help! Pin
Judah Gabriel Himango6-Apr-06 4:46
sponsorJudah Gabriel Himango6-Apr-06 4:46 
You can't insert at index 3 if there aren't at least 2 nodes yet.

What you should do is select your data from your table ordered by the sort order in the table. So if your table is called Foo, and the Sort Order column is called SortOrder, you would do something like:

SELECT * FROM Foo ORDERBY SortOrder

The results will then come back to you in ascending order (i.e. 0, 1, 2, ...). From there, you can just call treeView.Nodes.Add; no need to deal with insertion since they're all in the correct order already.
GeneralRe: TreeView dilema. Please Help! Pin
zaboboa6-Apr-06 5:22
zaboboa6-Apr-06 5:22 
GeneralRe: TreeView dilema. Please Help! Pin
Judah Gabriel Himango6-Apr-06 5:32
sponsorJudah Gabriel Himango6-Apr-06 5:32 
QuestionProgramming windows form in .NET Pin
bluehai6-Apr-06 3:26
bluehai6-Apr-06 3:26 
AnswerRe: Programming windows form in .NET Pin
scoroop6-Apr-06 3:43
scoroop6-Apr-06 3:43 
AnswerRe: Programming windows form in .NET Pin
spif20016-Apr-06 4:17
spif20016-Apr-06 4:17 
GeneralRe: Programming windows form in .NET Pin
bluehai6-Apr-06 4:50
bluehai6-Apr-06 4:50 
GeneralRe: Programming windows form in .NET Pin
Judah Gabriel Himango6-Apr-06 5:01
sponsorJudah Gabriel Himango6-Apr-06 5:01 
GeneralRe: Programming windows form in .NET Pin
bluehai6-Apr-06 5:06
bluehai6-Apr-06 5:06 
GeneralRe: Programming windows form in .NET Pin
Judah Gabriel Himango6-Apr-06 5:09
sponsorJudah Gabriel Himango6-Apr-06 5:09 
QuestionUsing win32 LIB in C# Pin
t4ure4n6-Apr-06 3:03
t4ure4n6-Apr-06 3:03 
AnswerRe: Using win32 LIB in C# Pin
Andy Moore6-Apr-06 3:09
Andy Moore6-Apr-06 3:09 
QuestionRe: Using win32 LIB in C# Pin
t4ure4n7-Apr-06 0:19
t4ure4n7-Apr-06 0:19 
AnswerRe: Using win32 LIB in C# Pin
Andy Moore7-Apr-06 3:15
Andy Moore7-Apr-06 3:15 
Question[Message Deleted] Pin
t4ure4n6-Apr-06 2:42
t4ure4n6-Apr-06 2:42 
AnswerRe: .C# and standard C library Pin
toxcct6-Apr-06 2:58
toxcct6-Apr-06 2:58 
AnswerRe: .C# and standard C library Pin
Stefan Troschuetz6-Apr-06 3:00
Stefan Troschuetz6-Apr-06 3:00 
QuestionmaskedTextBox Format Pin
mostafa_h6-Apr-06 2:26
mostafa_h6-Apr-06 2:26 

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.