Click here to Skip to main content
15,886,091 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Windows Service Pin
Jon Newman18-Dec-03 4:32
Jon Newman18-Dec-03 4:32 
GeneralRe: C# Windows Service Pin
Heath Stewart18-Dec-03 9:39
protectorHeath Stewart18-Dec-03 9:39 
GeneralXML Append serialized object to existing xml-file Pin
Mr. Labenche18-Dec-03 3:49
Mr. Labenche18-Dec-03 3:49 
GeneralRe: XML Append serialized object to existing xml-file Pin
Heath Stewart18-Dec-03 9:36
protectorHeath Stewart18-Dec-03 9:36 
GeneralAttributes Pin
Ken Galer18-Dec-03 2:38
Ken Galer18-Dec-03 2:38 
GeneralRe: Attributes Pin
Heath Stewart18-Dec-03 2:59
protectorHeath Stewart18-Dec-03 2:59 
GeneralRe: Attributes Pin
Ken Galer18-Dec-03 3:09
Ken Galer18-Dec-03 3:09 
GeneralQuestion with treeview Pin
markdbd17-Dec-03 22:57
markdbd17-Dec-03 22:57 
First of all, hi to everybody, it´s my first post Smile | :) And sorry for my english I am from Spain.

Well I am making a little app that write questions with their answers into an xml file. I am using a treeview to display the data.

The question is the top node, and in it there are subnodes each for an answer.

I know how to see which node was selected with this code:
<br />
if(this.IsNode(tree.GetNodeAt(this.tree.PointToClient(Cursor.Position)))==true)<br />


Where IsNode is:
<br />
		private bool IsNode(TreeNode node)<br />
		{<br />
			try<br />
			{<br />
				string foo = node.Text;<br />
				return true;<br />
			}<br />
			catch<br />
			{<br />
				return false;<br />
			}<br />
		}<br />


My question is:

How can I see if an subnode is selected or an node? I want to show an menu for answers and another for question.

Thanks a lot Smile | :)
GeneralRe: Question with treeview Pin
Member 26118818-Dec-03 0:09
Member 26118818-Dec-03 0:09 
GeneralRe: Question with treeview Pin
markdbd18-Dec-03 5:54
markdbd18-Dec-03 5:54 
GeneralCreate dial-up connection Pin
hebzzz17-Dec-03 22:51
hebzzz17-Dec-03 22:51 
GeneralRe: Create dial-up connection Pin
Heath Stewart18-Dec-03 3:35
protectorHeath Stewart18-Dec-03 3:35 
GeneralC# and smart Documents ( word 2003 ) Pin
anta17-Dec-03 21:58
anta17-Dec-03 21:58 
GeneralOptions dialog Pin
SaeidehV17-Dec-03 21:13
SaeidehV17-Dec-03 21:13 
GeneralRe: Options dialog Pin
Member 26118818-Dec-03 0:14
Member 26118818-Dec-03 0:14 
GeneralRe: Options dialog Pin
Heath Stewart18-Dec-03 3:12
protectorHeath Stewart18-Dec-03 3:12 
GeneralCSharp Custom Exception Pin
Member 33502217-Dec-03 19:59
Member 33502217-Dec-03 19:59 
GeneralRe: CSharp Custom Exception Pin
Mazdak17-Dec-03 21:38
Mazdak17-Dec-03 21:38 
GeneralRe: CSharp Custom Exception Pin
Member 33502217-Dec-03 21:42
Member 33502217-Dec-03 21:42 
GeneralRe: CSharp Custom Exception Pin
Heath Stewart18-Dec-03 3:11
protectorHeath Stewart18-Dec-03 3:11 
GeneralCustom Button Pin
Mazdak17-Dec-03 18:58
Mazdak17-Dec-03 18:58 
GeneralRe: Custom Button Pin
thomasa18-Dec-03 1:03
thomasa18-Dec-03 1:03 
GeneralStand alone project Pin
Lord Tor17-Dec-03 18:22
Lord Tor17-Dec-03 18:22 
GeneralRe: Stand alone project Pin
Morten Kristensen17-Dec-03 20:01
Morten Kristensen17-Dec-03 20:01 
GeneralRe: Stand alone project Pin
Alex Korchemniy17-Dec-03 20:11
Alex Korchemniy17-Dec-03 20:11 

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.