Click here to Skip to main content
15,903,012 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: Highlighting a selected text. Pin
irrdev9-Mar-07 21:38
irrdev9-Mar-07 21:38 
QuestionHow to write a memory resident application in C#.NET Pin
Mutyala Rao9-Mar-07 0:43
Mutyala Rao9-Mar-07 0:43 
AnswerRe: How to write a memory resident application in C#.NET Pin
Eytukan9-Mar-07 1:50
Eytukan9-Mar-07 1:50 
GeneralRe: How to write a memory resident application in C#.NET Pin
Mutyala Rao9-Mar-07 20:27
Mutyala Rao9-Mar-07 20:27 
Questiondatagridview Pin
Ruchi039-Mar-07 0:30
Ruchi039-Mar-07 0:30 
AnswerRe: datagridview Pin
nyogeswar9-Mar-07 1:20
nyogeswar9-Mar-07 1:20 
QuestionHow to get all the software install in the machine Pin
Niiiissssshhhhhuuuuu9-Mar-07 0:04
Niiiissssshhhhhuuuuu9-Mar-07 0:04 
AnswerRe: How to get all the software install in the machine [modified] Pin
MoustafaS9-Mar-07 3:26
MoustafaS9-Mar-07 3:26 
AnswerRe: How to get all the software install in the machine Pin
Thomas Stockwell9-Mar-07 12:45
professionalThomas Stockwell9-Mar-07 12:45 
QuestionHow to Retrieve Primary Key Column from an Existing Table in MsAcess Pin
BLekha8-Mar-07 22:04
BLekha8-Mar-07 22:04 
Questionvery simple question: what is the purpose of & in "" Pin
dino20948-Mar-07 22:00
dino20948-Mar-07 22:00 
AnswerRe: very simple question: what is the purpose of & in "" Pin
Stefan Troschuetz8-Mar-07 22:12
Stefan Troschuetz8-Mar-07 22:12 
AnswerRe: very simple question: what is the purpose of & in "" Pin
stancrm8-Mar-07 22:13
stancrm8-Mar-07 22:13 
QuestionUsercontrol and focus? Pin
Snowjim8-Mar-07 21:43
Snowjim8-Mar-07 21:43 
QuestionSystem.Net.Mail Problem... [modified] Pin
Jijo BP8-Mar-07 21:32
Jijo BP8-Mar-07 21:32 

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.