Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to copy cheked nodes from a treeview to to new treeview? Pin
Pete O'Hanlon2-Jan-12 21:36
mvePete O'Hanlon2-Jan-12 21:36 
GeneralRe: how to copy cheked nodes from a treeview to to new treeview? Pin
JANARDHAN GURRAM2-Jan-12 21:59
JANARDHAN GURRAM2-Jan-12 21:59 
AnswerRe: how to copy cheked nodes from a treeview to to new treeview? Pin
BillWoodruff2-Jan-12 14:10
professionalBillWoodruff2-Jan-12 14:10 
GeneralRe: how to copy cheked nodes from a treeview to to new treeview? Pin
JANARDHAN GURRAM2-Jan-12 21:40
JANARDHAN GURRAM2-Jan-12 21:40 
GeneralRe: how to copy cheked nodes from a treeview to to new treeview? Pin
BillWoodruff2-Jan-12 23:04
professionalBillWoodruff2-Jan-12 23:04 
GeneralRe: how to copy cheked nodes from a treeview to to new treeview? Pin
JANARDHAN GURRAM2-Jan-12 23:49
JANARDHAN GURRAM2-Jan-12 23:49 
GeneralRe: how to copy cheked nodes from a treeview to to new treeview?<SOLVED> Pin
JANARDHAN GURRAM3-Jan-12 1:06
JANARDHAN GURRAM3-Jan-12 1:06 
GeneralRe: how to copy cheked nodes from a treeview to to new treeview? Pin
BillWoodruff3-Jan-12 2:51
professionalBillWoodruff3-Jan-12 2:51 
JANARDHAN GURRAM wrote:
can i call this RecursiveParseTree() in any of the events of the treeview1 or 2 so that i need not click the button??
Yes, you can call it from anywhere, and you can recurse on the whole TreeView, or on any Node in any TreeView.

Whether you'd really want to have a different recursive parser for the second TreeView compared to the first one: well, that's a design problem you'll need to figure out depending on the difference in the way you alter/edit/use the two TreeViews.

Actually, even if you called it on a Node that had no child nodes: you'd pass a TreeNodeCollection whose 'Count property was #0 into the recursive procedure, and it would exit without error.

So, if you are using this recursive parsing on Nodes within the TreeView, you might want to "wrap the call" in something like this:
TreeNode targetNode = ????;
//
if(targetNode.Nodes.Count > 0)
{
  // call the recursive parser
  RecursiveParseTree(targetNode.Nodes,0);
}
else
{
  // consider how you want to respond to essentially a no-op
}
p.s. if answers here help you: please vote: if they didn't help you: please vote. imho, feedback strengthens our whole community.
"It is the mark of an educated mind to be able to entertain a thought without accepting it." Aristotle

GeneralRe: how to copy cheked nodes from a treeview to to new treeview? Pin
JANARDHAN GURRAM5-Jan-12 18:17
JANARDHAN GURRAM5-Jan-12 18:17 
GeneralRe: how to copy cheked nodes from a treeview to to new treeview? Pin
BillWoodruff5-Jan-12 22:38
professionalBillWoodruff5-Jan-12 22:38 
GeneralRe: how to copy cheked nodes from a treeview to to new treeview?<SOLVED> Pin
JANARDHAN GURRAM3-Jan-12 1:14
JANARDHAN GURRAM3-Jan-12 1:14 
QuestionProblem with Snake game in C# Pin
ori26942-Jan-12 3:20
ori26942-Jan-12 3:20 
AnswerRe: Problem with Snake game in C# Pin
Luc Pattyn2-Jan-12 3:42
sitebuilderLuc Pattyn2-Jan-12 3:42 
GeneralRe: Problem with Snake game in C# Pin
ori26942-Jan-12 4:31
ori26942-Jan-12 4:31 
Questionhow to preserve zero bebore number in csv file that opens on excell ? Pin
goldsoft2-Jan-12 0:23
goldsoft2-Jan-12 0:23 
AnswerRe: how to preserve zero bebore number in csv file that opens on excell ? Pin
Shameel2-Jan-12 2:18
professionalShameel2-Jan-12 2:18 
AnswerRe: how to preserve zero bebore number in csv file that opens on excell ? Pin
Richard MacCutchan2-Jan-12 3:35
mveRichard MacCutchan2-Jan-12 3:35 
GeneralRe: how to preserve zero bebore number in csv file that opens on excell ? Pin
Shameel2-Jan-12 3:44
professionalShameel2-Jan-12 3:44 
GeneralRe: how to preserve zero bebore number in csv file that opens on excell ? Pin
Richard MacCutchan2-Jan-12 3:57
mveRichard MacCutchan2-Jan-12 3:57 
QuestionHow to Convert Microsoft Office Word document to Image file such as Tiff? Pin
moslemB1-Jan-12 23:44
moslemB1-Jan-12 23:44 
QuestionRe: How to Convert Microsoft Office Word document to Image file such as Tiff? Pin
DaveAuld1-Jan-12 23:57
professionalDaveAuld1-Jan-12 23:57 
Questionmove from cells in dataGridview Pin
Nabawoka1-Jan-12 10:50
Nabawoka1-Jan-12 10:50 
AnswerRe: move from cells in dataGridview Pin
DaveAuld2-Jan-12 0:03
professionalDaveAuld2-Jan-12 0:03 
QuestionWebservice returns dataset as an xml Pin
kondapalli.santosh1-Jan-12 8:43
kondapalli.santosh1-Jan-12 8:43 
QuestionRe: Webservice returns dataset as an xml Pin
David C# Hobbyist.1-Jan-12 9:07
professionalDavid C# Hobbyist.1-Jan-12 9:07 

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.