Click here to Skip to main content
15,893,814 members
Home / Discussions / C#
   

C#

 
GeneralRe: problem in capturing the handle to USB HID device for reading and writing operations Pin
BobJanova3-Jan-12 2:25
BobJanova3-Jan-12 2:25 
GeneralRe: problem in capturing the handle to USB HID device for reading and writing operations Pin
anuj_jain3-Jan-12 2:30
anuj_jain3-Jan-12 2:30 
QuestionError reading word doc using Micorsoft.Office.Interop(Object library) via IIS 7 Pin
sudeep vajrala2-Jan-12 19:46
sudeep vajrala2-Jan-12 19:46 
AnswerRe: Error reading word doc using Micorsoft.Office.Interop(Object library) via IIS 7 Pin
manognya kota3-Jan-12 19:10
manognya kota3-Jan-12 19:10 
Question[SOLVED] - DataGridView - Object can not be cast 'From DBNullto Other Types' Pin
AmbiguousName2-Jan-12 19:17
AmbiguousName2-Jan-12 19:17 
AnswerRe: DataGridView - Object can not be cast 'From DBNullto Other Types' Pin
V.2-Jan-12 20:15
professionalV.2-Jan-12 20:15 
GeneralRe: DataGridView - Object can not be cast 'From DBNullto Other Types' Pin
AmbiguousName3-Jan-12 19:04
AmbiguousName3-Jan-12 19:04 
AnswerRe: DataGridView - Object can not be cast 'From DBNullto Other Types' Pin
PIEBALDconsult3-Jan-12 2:25
mvePIEBALDconsult3-Jan-12 2:25 
Questioncall database sql server 2008 in c# Pin
tito0306902-Jan-12 14:45
tito0306902-Jan-12 14:45 
AnswerRe: call database sql server 2008 in c# Pin
OriginalGriff2-Jan-12 21:21
mveOriginalGriff2-Jan-12 21:21 
Questionthe counter reading program in c # Pin
mfy402-Jan-12 12:35
mfy402-Jan-12 12:35 
AnswerRe: the counter reading program in c # Pin
BillWoodruff2-Jan-12 14:20
professionalBillWoodruff2-Jan-12 14:20 
Questionhow to copy cheked nodes from a treeview to to new treeview? Pin
JANARDHAN GURRAM2-Jan-12 7:08
JANARDHAN GURRAM2-Jan-12 7:08 
AnswerRe: how to copy cheked nodes from a treeview to to new treeview? Pin
Pete O'Hanlon2-Jan-12 10:34
mvePete O'Hanlon2-Jan-12 10:34 
GeneralRe: how to copy cheked nodes from a treeview to to new treeview? Pin
JANARDHAN GURRAM2-Jan-12 21:23
JANARDHAN GURRAM2-Jan-12 21:23 
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 

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.