Click here to Skip to main content
16,017,745 members
Home / Discussions / C#
   

C#

 
AnswerRe: Deactivating a form... Pin
Paul Conrad24-Jul-07 19:06
professionalPaul Conrad24-Jul-07 19:06 
GeneralRe: Deactivating a form... Pin
Shy Agam25-Jul-07 1:09
Shy Agam25-Jul-07 1:09 
AnswerRe: Deactivating a form... Pin
il_masacratore24-Jul-07 21:38
il_masacratore24-Jul-07 21:38 
GeneralRe: Deactivating a form... Pin
Shy Agam25-Jul-07 1:08
Shy Agam25-Jul-07 1:08 
GeneralRe: Deactivating a form... Pin
il_masacratore25-Jul-07 2:45
il_masacratore25-Jul-07 2:45 
AnswerRe: Deactivating a form... Pin
Shy Agam25-Jul-07 2:11
Shy Agam25-Jul-07 2:11 
GeneralRe: Deactivating a form... Pin
Paul Conrad25-Jul-07 6:12
professionalPaul Conrad25-Jul-07 6:12 
QuestionAbout TreeView Questions! Pin
snowlover24-Jul-07 15:48
snowlover24-Jul-07 15:48 
The following code can read Xml file and put elements into treeview as nodes. I wish to do two things; 1)move parameters out from the tree and only leave table's name on the tree 2)when mouse click on table's name, the parameter associtated with the table will show up in text box.

The following is a sample of xml file. ServerSession and ClientSessions are table names in dataset. others are parameters. It should have <> symbol but because it won't show the content if with the symbol.


?xml version="1.0" standalone="yes"?
UserSession xmlns="http://tempuri.org/UserSession.xsd"
ServerSession
StartTime 2007-07-20T13:57:39.7346316-02:30/StartTime
ServerSessionID 0 /ServerSessionID
EndTime 2007-07-20T13:57:39.7346316-02:30 /EndTime
ClientSessions
StartTime 2007-07-20T13:59:52.8972108-02:30 /StartTime
ClientIP 127.0.0.1:2138 /ClientIP
ClientSessionID0/ClientSessionID
ServerSessionID 0 /ServerSessionID
/ClientSessions
/ServerSession
/UserSession

<br />
	private void AddNode(XmlNode inXmlNode, TreeNode inTreeNode)<br />
		{	XmlNode xNode;<br />
			TreeNode tNode;<br />
			XmlNodeList nodeList;<br />
			int i;<br />
			string name = "";<br />
			if (inXmlNode.HasChildNodes)<br />
			{<br />
				nodeList = inXmlNode.ChildNodes;<br />
				for (i = 0; i <= nodeList.Count - 1; i++)<br />
				{<br />
					xNode = inXmlNode.ChildNodes[i];<br />
					inTreeNode.Nodes.Add(new TreeNode(xNode.Name));<br />
					tNode = inTreeNode.Nodes[i];<br />
					AddNode(xNode, tNode);<br />
				}<br />
			}<br />
			else<br />
			{<br />
				inTreeNode.Text = (inXmlNode.OuterXml).Trim();<br />
			}<br />
		}<br />

Questionis there any way to check the DataTable has been populated? Pin
Khoramdin24-Jul-07 13:00
Khoramdin24-Jul-07 13:00 
AnswerRe: is there any way to check the DataTable has been populated? Pin
Justin Perez24-Jul-07 13:11
Justin Perez24-Jul-07 13:11 
GeneralRe: is there any way to check the DataTable has been populated? Pin
help as an alias24-Jul-07 17:45
help as an alias24-Jul-07 17:45 
QuestionAppending RTF files Pin
bart6024-Jul-07 12:34
bart6024-Jul-07 12:34 
Questiongeneric functions Pin
dfn24-Jul-07 12:21
dfn24-Jul-07 12:21 
AnswerRe: generic functions Pin
Christian Graus24-Jul-07 12:35
protectorChristian Graus24-Jul-07 12:35 
QuestionOnHelpButtonClicked Pin
RussBus24-Jul-07 12:10
RussBus24-Jul-07 12:10 
AnswerRe: OnHelpButtonClicked Pin
Martin#24-Jul-07 19:53
Martin#24-Jul-07 19:53 
GeneralRe: OnHelpButtonClicked Pin
RussBus25-Jul-07 5:30
RussBus25-Jul-07 5:30 
GeneralRe: OnHelpButtonClicked Pin
RussBus25-Jul-07 5:58
RussBus25-Jul-07 5:58 
GeneralRe: OnHelpButtonClicked Pin
Martin#25-Jul-07 19:37
Martin#25-Jul-07 19:37 
QuestionDynamic XML Search Pin
cp16net24-Jul-07 11:44
cp16net24-Jul-07 11:44 
AnswerRe: Dynamic XML Search Pin
il_masacratore25-Jul-07 11:17
il_masacratore25-Jul-07 11:17 
QuestionEncryption Pin
Richard Andrew x6424-Jul-07 11:22
professionalRichard Andrew x6424-Jul-07 11:22 
AnswerRe: Encryption Pin
Christian Graus24-Jul-07 11:23
protectorChristian Graus24-Jul-07 11:23 
GeneralRe: Encryption Pin
Richard Andrew x6424-Jul-07 11:45
professionalRichard Andrew x6424-Jul-07 11:45 
GeneralRe: Encryption Pin
Christian Graus24-Jul-07 12:05
protectorChristian Graus24-Jul-07 12:05 

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.