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

C#

 
Questiondatagridview Pin
arkiboys9-Mar-07 5:33
arkiboys9-Mar-07 5:33 
AnswerRe: datagridview Pin
led mike9-Mar-07 5:36
led mike9-Mar-07 5:36 
QuestionORDVIDEO?? Pin
Muhammad Chitrali9-Mar-07 5:27
Muhammad Chitrali9-Mar-07 5:27 
QuestionDeploying C# with Crystal Reports Pin
Quaspam9-Mar-07 4:38
Quaspam9-Mar-07 4:38 
AnswerRe: Deploying C# with Crystal Reports Pin
kubben9-Mar-07 5:18
kubben9-Mar-07 5:18 
GeneralRe: Deploying C# with Crystal Reports Pin
gus_br9-Mar-07 12:14
gus_br9-Mar-07 12:14 
QuestionAdd Item to list view [modified] Pin
shamsteady9-Mar-07 3:41
shamsteady9-Mar-07 3:41 
QuestionDataGridView ClearSelection() behavior Pin
Matthew Cuba9-Mar-07 3:06
Matthew Cuba9-Mar-07 3:06 
AnswerRe: DataGridView ClearSelection() behavior Pin
dsl/fahk9-Mar-07 7:34
dsl/fahk9-Mar-07 7:34 
QuestionHow to capture running instance of an application ? Pin
Mr Perfect9-Mar-07 2:43
Mr Perfect9-Mar-07 2:43 
AnswerRe: How to capture running instance of an application ? Pin
led mike9-Mar-07 4:43
led mike9-Mar-07 4:43 
QuestionRemoving Check Boxes From CheckedListBox Pin
idreesbadshah9-Mar-07 2:26
idreesbadshah9-Mar-07 2:26 
AnswerRe: Removing Check Boxes From CheckedListBox Pin
MoustafaS9-Mar-07 3:35
MoustafaS9-Mar-07 3:35 
AnswerRe: Removing Check Boxes From CheckedListBox Pin
pbraun9-Mar-07 4:55
pbraun9-Mar-07 4:55 
QuestionVisual Studio 2005 Pin
Korken_Bro9-Mar-07 2:25
Korken_Bro9-Mar-07 2:25 
AnswerRe: Visual Studio 2005 Pin
Colin Angus Mackay9-Mar-07 2:27
Colin Angus Mackay9-Mar-07 2:27 
GeneralRe: Visual Studio 2005 Pin
Korken_Bro9-Mar-07 2:38
Korken_Bro9-Mar-07 2:38 
AnswerRe: Visual Studio 2005 Pin
Stefan Troschuetz9-Mar-07 2:59
Stefan Troschuetz9-Mar-07 2:59 
AnswerRe: Visual Studio 2005 Pin
Wayne Phipps9-Mar-07 4:42
Wayne Phipps9-Mar-07 4:42 
GeneralRe: Visual Studio 2005 Pin
Korken_Bro9-Mar-07 7:04
Korken_Bro9-Mar-07 7:04 
AnswerRe: Visual Studio 2005 Pin
Thomas Stockwell9-Mar-07 12:42
professionalThomas Stockwell9-Mar-07 12:42 
QuestionProblem Creating TreeView Pin
t4ure4n9-Mar-07 1:06
t4ure4n9-Mar-07 1:06 
AnswerRe: Problem Creating TreeView Pin
tgrt9-Mar-07 2:35
tgrt9-Mar-07 2:35 
The difference between the two overloads is that the string version creates a new node; whereas the node overload just adds it to the collection. You should be getting an ArgumentException that indicates you cannot add the node in more than one place.

The solution for you is to clone the node. You'll need to override the Clone method from the TreeNode base class and make sure your properties are copied.

I also have a design recommendation for you. The ReportTree is not necessary. It appears that all of your implementation is related to creation. That is, you're not really maintaining any state in it. The Builder[^] pattern would work well for you. You'd still want the concrete tree node you created.
QuestionHighlighting a selected text. Pin
SakthiSurya9-Mar-07 0:47
SakthiSurya9-Mar-07 0:47 
AnswerRe: Highlighting a selected text. Pin
N a v a n e e t h9-Mar-07 0:53
N a v a n e e t h9-Mar-07 0:53 

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.