Click here to Skip to main content
15,891,943 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to create a new GUID? Pin
Larry Antram18-Dec-03 11:31
Larry Antram18-Dec-03 11:31 
GeneralDynamic configuration file Pin
Le centriste18-Dec-03 8:15
Le centriste18-Dec-03 8:15 
GeneralRe: Dynamic configuration file Pin
Not Active18-Dec-03 8:51
mentorNot Active18-Dec-03 8:51 
GeneralRe: Dynamic configuration file Pin
Heath Stewart18-Dec-03 9:43
protectorHeath Stewart18-Dec-03 9:43 
GeneralAcceptButton & Show() Pin
Arun Bhalla18-Dec-03 7:55
Arun Bhalla18-Dec-03 7:55 
GeneralRe: AcceptButton & Show() Pin
Mike Ellison18-Dec-03 8:52
Mike Ellison18-Dec-03 8:52 
GeneralRe: AcceptButton & Show() Pin
Member 26118818-Dec-03 22:16
Member 26118818-Dec-03 22:16 
GeneralClosing a blocked thread Pin
Guinness4Strength18-Dec-03 5:34
Guinness4Strength18-Dec-03 5:34 
GeneralRe: Closing a blocked thread Pin
Kentamanos18-Dec-03 6:12
Kentamanos18-Dec-03 6:12 
GeneralC# Windows Service Pin
frank2118-Dec-03 4:26
frank2118-Dec-03 4:26 
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 

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.