Click here to Skip to main content
15,885,941 members
Home / Discussions / C#
   

C#

 
AnswerRe: Is scrollbar hidden? Pin
Alan N14-Mar-10 13:10
Alan N14-Mar-10 13:10 
AnswerRe: Is scrollbar hidden? Pin
Luc Pattyn14-Mar-10 13:29
sitebuilderLuc Pattyn14-Mar-10 13:29 
QuestionProblem to save assembly via System.Reflection.Emit. Pin
hdv21214-Mar-10 9:56
hdv21214-Mar-10 9:56 
AnswerRe: Problem to save assembly via System.Reflection.Emit. Pin
Luc Pattyn14-Mar-10 11:35
sitebuilderLuc Pattyn14-Mar-10 11:35 
QuestionProgrammingly Change treeview indexes Pin
Ronni Marker14-Mar-10 7:34
Ronni Marker14-Mar-10 7:34 
AnswerMessage Closed Pin
14-Mar-10 7:56
stancrm14-Mar-10 7:56 
GeneralRe: Programmingly Change treeview indexes Pin
Ronni Marker14-Mar-10 8:42
Ronni Marker14-Mar-10 8:42 
GeneralRe: Programmingly Change treeview indexes Pin
Dan Mos14-Mar-10 13:44
Dan Mos14-Mar-10 13:44 
Create a temporary treeNode, set it to the one you want to move, remove it from the old location and insert it at the desired location.

OK heres a posible pseudo code/steps:

C#
1) Create a temp TreeNodeCollection :
TreeNodeCollection tmp = (TreeNodeCollection)treeView1.Nodes["myNode"].Clone(); //or
TreeNodeCollection tmp = (TreeNodeCollection)treeView1.Nodes[idx].Clone();


2) Remove the node from the old location
treeView1.Nodes.RemoveAt(idx);


3) Insert it at the desired location
treeView1.Nodes.Insert(desired_Idx, tmp[0]);
//also you could use a for/foreach to insert the childnodes of the removed node if any

QuestionEditing Text in a DataGridViewComboBoxColumn Pin
jojoba201114-Mar-10 4:48
jojoba201114-Mar-10 4:48 
AnswerRe: Editing Text in a DataGridViewComboBoxColumn Pin
Sandeep Mewara14-Mar-10 8:08
mveSandeep Mewara14-Mar-10 8:08 
QuestionRe: Editing Text in a DataGridViewComboBoxColumn Pin
jojoba201114-Mar-10 19:18
jojoba201114-Mar-10 19:18 
QuestionDataGridView Combobox DataError Exception Pin
arj_agt14-Mar-10 4:22
arj_agt14-Mar-10 4:22 
AnswerRe: DataGridView Combobox DataError Exception Pin
Luc Pattyn14-Mar-10 6:32
sitebuilderLuc Pattyn14-Mar-10 6:32 
GeneralRe: DataGridView Combobox DataError Exception Pin
arj_agt14-Mar-10 19:22
arj_agt14-Mar-10 19:22 
GeneralRe: DataGridView Combobox DataError Exception Pin
Luc Pattyn15-Mar-10 1:10
sitebuilderLuc Pattyn15-Mar-10 1:10 
AnswerRe: DataGridView Combobox DataError Exception Pin
arj_agt16-Mar-10 21:29
arj_agt16-Mar-10 21:29 
Questionwindows mobile mouse hook Pin
umutumsu14-Mar-10 4:20
umutumsu14-Mar-10 4:20 
AnswerRe: windows mobile mouse hook Pin
#realJSOP14-Mar-10 4:26
mve#realJSOP14-Mar-10 4:26 
GeneralRe: windows mobile mouse hook Pin
umutumsu14-Mar-10 10:43
umutumsu14-Mar-10 10:43 
GeneralRe: windows mobile mouse hook Pin
#realJSOP14-Mar-10 10:44
mve#realJSOP14-Mar-10 10:44 
GeneralRe: windows mobile mouse hook Pin
umutumsu14-Mar-10 10:48
umutumsu14-Mar-10 10:48 
GeneralRe: windows mobile mouse hook Pin
#realJSOP14-Mar-10 11:08
mve#realJSOP14-Mar-10 11:08 
GeneralRe: windows mobile mouse hook Pin
umutumsu14-Mar-10 12:06
umutumsu14-Mar-10 12:06 
GeneralRe: windows mobile mouse hook Pin
#realJSOP15-Mar-10 0:13
mve#realJSOP15-Mar-10 0:13 
QuestionAccessing another application's Controls Pin
cdpace14-Mar-10 2:20
cdpace14-Mar-10 2:20 

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.