Click here to Skip to main content
15,906,574 members
Home / Discussions / C#
   

C#

 
AnswerRe: Does C# have Template like C++ ?? Pin
Giles22-May-03 2:20
Giles22-May-03 2:20 
AnswerRe: Does C# have Template like C++ ?? Pin
Jon Newman22-May-03 5:12
Jon Newman22-May-03 5:12 
QuestionDBF File Read in DataGrid? Pin
bania21-May-03 21:54
bania21-May-03 21:54 
AnswerRe: DBF File Read in DataGrid? Pin
Rocky Moore21-May-03 23:02
Rocky Moore21-May-03 23:02 
GeneralButtons not firing Click event after OpenFileDialog Pin
Arun Bhalla21-May-03 17:38
Arun Bhalla21-May-03 17:38 
GeneralRe: Buttons not firing Click event after OpenFileDialog Pin
Arun Bhalla21-May-03 18:47
Arun Bhalla21-May-03 18:47 
GeneralNode searching in TreeView Pin
azusakt21-May-03 16:17
azusakt21-May-03 16:17 
GeneralRe: Node searching in TreeView Pin
Jose Fco Bonnin22-May-03 3:22
Jose Fco Bonnin22-May-03 3:22 
Here are a little approach ...

<br />
		public TreeNode Search(TreeNodeCollection col)<br />
		{<br />
			// Create an enumerator for the collection.<br />
			IEnumerator myEnumerator = col.GetEnumerator();<br />
			TreeNode node = null;<br />
			while(myEnumerator.MoveNext())<br />
			{<br />
				System.Console.Out.WriteLine(((TreeNode)myEnumerator.Current).Text + ": "+ ((TreeNode)myEnumerator.Current).FullPath);<br />
<br />
				if ( ((TreeNode)myEnumerator.Current).FullPath == textBox1.Text) // Make the right comparision<br />
					return ((TreeNode)myEnumerator.Current);<br />
				else<br />
				{<br />
					node = Search( ((TreeNode)myEnumerator.Current).Nodes );<br />
				}<br />
			}<br />
			return node;<br />
		}<br />
<br />
		private void button1_Click(object sender, System.EventArgs e)<br />
		{<br />
			TreeNode node = Search(treeView1.Nodes);<br />
			if (node!=null)<br />
			{<br />
				treeView1.SelectedNode = node;<br />
				treeView1.Select();<br />
			}	<br />
		}<br />


I hope that it helps.
Greetings, Jose.
GeneralRe: Node searching in TreeView Pin
azusakt22-May-03 19:57
azusakt22-May-03 19:57 
Questionusing reflection to get version number..?? Pin
Anonymous21-May-03 12:32
Anonymous21-May-03 12:32 
AnswerRe: using reflection to get version number..?? Pin
leppie21-May-03 13:11
leppie21-May-03 13:11 
Generalproblem with spanComment.InnerHtml Pin
Anonymous21-May-03 10:41
Anonymous21-May-03 10:41 
GeneralRe: problem with spanComment.InnerHtml Pin
Paul Lyons21-May-03 17:42
Paul Lyons21-May-03 17:42 
GeneralRe: problem with spanComment.InnerHtml Pin
Slow Learner22-May-03 4:11
Slow Learner22-May-03 4:11 
GeneralInheritance Question Pin
Bugoy21-May-03 10:10
Bugoy21-May-03 10:10 
GeneralRe: Inheritance Question Pin
J. Dunlap21-May-03 10:40
J. Dunlap21-May-03 10:40 
GeneralInteraction between Forms !!! Pin
DuongNguyen21-May-03 9:57
DuongNguyen21-May-03 9:57 
GeneralRe: Interaction between Forms !!! Pin
Tomas Petricek21-May-03 11:05
Tomas Petricek21-May-03 11:05 
GeneralRe: Interaction between Forms !!! Pin
DuongNguyen21-May-03 11:33
DuongNguyen21-May-03 11:33 
GeneralRe: Interaction between Forms !!! Pin
Omega50121-May-03 13:33
Omega50121-May-03 13:33 
GeneralGC in Services Pin
solidstore21-May-03 7:33
solidstore21-May-03 7:33 
GeneralRe: GC in Services Pin
leppie21-May-03 9:04
leppie21-May-03 9:04 
GeneralRe: GC in Services Pin
solidstore22-May-03 3:23
solidstore22-May-03 3:23 
GeneralRe: GC in Services Pin
Daniel Turini22-May-03 3:42
Daniel Turini22-May-03 3:42 
GeneralRe: GC in Services Pin
solidstore22-May-03 3:54
solidstore22-May-03 3:54 

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.