Click here to Skip to main content
15,394,990 members
Home / Discussions / C#
   

C#

 
GeneralCombobox Pin
bertcox17-May-04 4:54
Memberbertcox17-May-04 4:54 
GeneralRe: Combobox Pin
Heath Stewart17-May-04 5:04
protectorHeath Stewart17-May-04 5:04 
GeneralEdit a file Pin
Appelz17-May-04 3:17
MemberAppelz17-May-04 3:17 
GeneralRe: Edit a file Pin
Dave Kreskowiak17-May-04 3:41
mveDave Kreskowiak17-May-04 3:41 
GeneralRe: Edit a file Pin
Heath Stewart17-May-04 3:47
protectorHeath Stewart17-May-04 3:47 
GeneralImage Transparent In C# Pin
Anonymous17-May-04 2:44
MemberAnonymous17-May-04 2:44 
GeneralRe: Image Transparent In C# Pin
Heath Stewart17-May-04 3:49
protectorHeath Stewart17-May-04 3:49 
GeneralGetting the Attibute on an element XML Pin
Melanius17-May-04 1:27
MemberMelanius17-May-04 1:27 
Hi i am trying to get the value of an attribute displayed, but i can't seem to find the best way to get to it. If the element contains no attributes it returns -1?
XmlDocument document = new XmlDocument();<br />
			document.Load("..\\..\\commands.xml");<br />
<br />
			XmlNodeReader reader = new XmlNodeReader(document);<br />
<br />
			this.Show();<br />
<br />
			while (reader.Read())<br />
			{<br />
				switch (reader.NodeType)<br />
				{<br />
					case XmlNodeType.Element:<br />
						int attributes = reader.AttributeCount;<br />
						cmdOutput.Text += "<" + reader.Name + reader.GetAttribute(attributes) + ">";<br />
						break;<br />
					case XmlNodeType.Text:<br />
						cmdOutput.Text += "\t" + reader.Value + "\r\n";<br />
						break;<br />
					case XmlNodeType.EndElement:<br />
						cmdOutput.Text += "</" + reader.Name + ">\r\n";<br />
						break;<br />
				}<br />
			}

GeneralRe: Getting the Attibute on an element XML Pin
Heath Stewart17-May-04 3:54
protectorHeath Stewart17-May-04 3:54 
GeneralSlow sorting with XSL Pin
bertcox17-May-04 0:18
Memberbertcox17-May-04 0:18 
GeneralRe: Slow sorting with XSL Pin
Dave Kreskowiak17-May-04 3:39
mveDave Kreskowiak17-May-04 3:39 
GeneralRe: Slow sorting with XSL Pin
Appelz17-May-04 3:44
MemberAppelz17-May-04 3:44 
GeneralRe: Slow sorting with XSL Pin
Dave Kreskowiak17-May-04 6:28
mveDave Kreskowiak17-May-04 6:28 
GeneralRe: Slow sorting with XSL Pin
bertcox17-May-04 3:55
Memberbertcox17-May-04 3:55 
GeneralOpenfiledialog Pin
bertcox16-May-04 22:28
Memberbertcox16-May-04 22:28 
GeneralRe: Openfiledialog Pin
sreejith ss nair17-May-04 1:40
Membersreejith ss nair17-May-04 1:40 
GeneralRe: Openfiledialog Pin
Heath Stewart17-May-04 3:58
protectorHeath Stewart17-May-04 3:58 
GeneralRe: Openfiledialog Pin
bertcox17-May-04 4:12
Memberbertcox17-May-04 4:12 
Generalregd dll's Pin
karteek16-May-04 21:43
Memberkarteek16-May-04 21:43 
GeneralRe: regd dll's Pin
wibblewibblewibble16-May-04 22:14
Memberwibblewibblewibble16-May-04 22:14 
GeneralRe: regd dll's Pin
Dave Kreskowiak17-May-04 0:50
mveDave Kreskowiak17-May-04 0:50 
GeneralInterProcess Communication in WinForms Pin
Ariadne16-May-04 21:39
MemberAriadne16-May-04 21:39 
GeneralRe: InterProcess Communication in WinForms Pin
Dave Kreskowiak17-May-04 3:34
mveDave Kreskowiak17-May-04 3:34 
GeneralRe: InterProcess Communication in WinForms Pin
Ariadne17-May-04 3:37
MemberAriadne17-May-04 3:37 
GeneralRe: InterProcess Communication in WinForms Pin
Dave Kreskowiak17-May-04 3:45
mveDave Kreskowiak17-May-04 3:45 

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.