Click here to Skip to main content
15,899,314 members
Home / Discussions / C#
   

C#

 
GeneralRe: Running an application Pin
nike_arh8-Mar-08 0:03
nike_arh8-Mar-08 0:03 
GeneralRe: Running an application Pin
pmarfleet7-Mar-08 23:08
pmarfleet7-Mar-08 23:08 
QuestionGetting logged in user in Active Directory Pin
M. J. Jaya Chitra7-Mar-08 22:57
M. J. Jaya Chitra7-Mar-08 22:57 
GeneralRe: Getting logged in user in Active Directory Pin
Simon P Stevens12-Mar-08 7:04
Simon P Stevens12-Mar-08 7:04 
QuestionHow to Check a node is duplicate or not in a treeview Pin
Krazy Programmer7-Mar-08 22:44
Krazy Programmer7-Mar-08 22:44 
GeneralRe: How to Check a node is duplicate or not in a treeview Pin
Giorgi Dalakishvili7-Mar-08 22:47
mentorGiorgi Dalakishvili7-Mar-08 22:47 
GeneralRe: How to Check a node is duplicate or not in a treeview Pin
Krazy Programmer7-Mar-08 23:09
Krazy Programmer7-Mar-08 23:09 
GeneralRe: How to Check a node is duplicate or not in a treeview Pin
Giorgi Dalakishvili7-Mar-08 23:25
mentorGiorgi Dalakishvili7-Mar-08 23:25 
What do you mean by simple? I don't think there is any other way rather then using a recursive function, you can just try to optimize it.

You could also maintain a HashTable or Dictionary variable where you will store all nodes that you add and check whether the node you are adding is already present but in that case your application will need more memory. If performance is your priority you can do it but if your priority is memory usage then you should go with recursive function. It depends on the situation.

#region signature
my articles
#endregion

GeneralRe: How to Check a node is duplicate or not in a treeview Pin
Xmen Real 8-Mar-08 3:21
professional Xmen Real 8-Mar-08 3:21 
GeneralProgress Report: File.Copy Pin
Ian Uy7-Mar-08 22:40
Ian Uy7-Mar-08 22:40 
GeneralRe: Progress Report: File.Copy Pin
Giorgi Dalakishvili7-Mar-08 22:48
mentorGiorgi Dalakishvili7-Mar-08 22:48 
GeneralRe: Progress Report: File.Copy Pin
Abhijit Jana7-Mar-08 23:15
professionalAbhijit Jana7-Mar-08 23:15 
Questionplaying .mp3 files in c# Pin
achari.ravi7-Mar-08 21:30
achari.ravi7-Mar-08 21:30 
GeneralRe: playing .mp3 files in c# Pin
Christian Graus7-Mar-08 21:45
protectorChristian Graus7-Mar-08 21:45 
GeneralRe: playing .mp3 files in c# Pin
Giorgi Dalakishvili7-Mar-08 22:44
mentorGiorgi Dalakishvili7-Mar-08 22:44 
GeneralRe: playing .mp3 files in c# Pin
Sathesh Sakthivel7-Mar-08 23:28
Sathesh Sakthivel7-Mar-08 23:28 
AnswerRe: playing .mp3 files in c# Pin
achari.ravi9-Mar-08 21:48
achari.ravi9-Mar-08 21:48 
GeneralGet the datarow bount to a datagridview Pin
baranils7-Mar-08 20:24
baranils7-Mar-08 20:24 
Generalcompiler Pin
faradgi7-Mar-08 20:20
faradgi7-Mar-08 20:20 
GeneralRe: compiler Pin
Christian Graus7-Mar-08 21:46
protectorChristian Graus7-Mar-08 21:46 
GeneralRe: compiler Pin
Abhijit Jana7-Mar-08 21:59
professionalAbhijit Jana7-Mar-08 21:59 
GeneralValidation Problem Pin
Mogaambo7-Mar-08 20:17
Mogaambo7-Mar-08 20:17 
GeneralRe: Validation Problem Pin
Chetan Patel7-Mar-08 21:11
Chetan Patel7-Mar-08 21:11 
GeneralRe: Validation Problem Pin
Abhijit Jana7-Mar-08 22:03
professionalAbhijit Jana7-Mar-08 22:03 
GeneralEncrypting strings so that Reflector can't get to them Pin
Domenic Denicola7-Mar-08 19:12
Domenic Denicola7-Mar-08 19:12 

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.