Click here to Skip to main content
15,919,028 members
Home / Discussions / C#
   

C#

 
AnswerRe: listbox string text unorganized Pin
Eddy Vluggen21-Apr-09 4:31
professionalEddy Vluggen21-Apr-09 4:31 
QuestionSquare Wave using C# Pin
spalanivel21-Apr-09 3:46
spalanivel21-Apr-09 3:46 
AnswerRe: Square Wave using C# Pin
Rob Philpott21-Apr-09 3:49
Rob Philpott21-Apr-09 3:49 
GeneralRe: Square Wave using C# Pin
spalanivel21-Apr-09 4:00
spalanivel21-Apr-09 4:00 
GeneralRe: Square Wave using C# Pin
Rob Philpott21-Apr-09 4:40
Rob Philpott21-Apr-09 4:40 
GeneralRe: Square Wave using C# Pin
spalanivel21-Apr-09 19:38
spalanivel21-Apr-09 19:38 
AnswerRe: Square Wave using C# Pin
Wes Aday21-Apr-09 3:57
professionalWes Aday21-Apr-09 3:57 
AnswerRe: Square Wave using C# Pin
stancrm21-Apr-09 4:10
stancrm21-Apr-09 4:10 
QuestionHow Autocomplete works in Windows application Pin
NarVish21-Apr-09 3:46
NarVish21-Apr-09 3:46 
AnswerRe: How Autocomplete works in Windows application Pin
Eddy Vluggen21-Apr-09 4:29
professionalEddy Vluggen21-Apr-09 4:29 
GeneralRe: How Autocomplete works in Windows application Pin
NarVish21-Apr-09 20:10
NarVish21-Apr-09 20:10 
Questionfinding a specific node in XML with given string Pin
Emmet_Brown21-Apr-09 3:25
Emmet_Brown21-Apr-09 3:25 
AnswerRe: finding a specific node in XML with given string Pin
Jimmanuel21-Apr-09 3:39
Jimmanuel21-Apr-09 3:39 
AnswerRe: finding a specific node in XML with given string Pin
Rob Philpott21-Apr-09 3:47
Rob Philpott21-Apr-09 3:47 
GeneralRe: finding a specific node in XML with given string Pin
Emmet_Brown21-Apr-09 4:19
Emmet_Brown21-Apr-09 4:19 
thanks for replies

I've changed my app a bit.
to be more precisive, the XML document is like:

<app>
<appname>application1</appname>
<action><arg>argument1</arg><ges>gesture1</ges></action>
</app>
<app>
<appname>application2</appname>
<action><arg>argument2</arg><ges>gesture2</ges></action>
</app>
..etc

I'm choosing a node from my treeview first, and the node in the treeview has the name with "title" node's inner text, (so arg and ges nodes are siblings for the title)

what I'm doing right now is;

XmlDocument doc = new XmlDocument();
doc.Load();


XmlNode editing = doc.SelectSingleNode(treeView1.SelectedNode.Text); //here I'm trying to find a node with selected single node's text

editing.NextSibling.InnerText = "changedText"; //and here I'm trying to change the inner text of the arg or ges nodes' innertext


in fact, application gives "Object reference not set to an instance of an object." message pointing the "XmlNode editing = doc.blahblah" line

any further help?


edit: there's also a <title>NodeTitle1/2</> tag among arg and ges nodes which I forgot to add to xml example
GeneralRe: finding a specific node in XML with given string Pin
Rob Philpott21-Apr-09 4:26
Rob Philpott21-Apr-09 4:26 
GeneralRe: finding a specific node in XML with given string Pin
Emmet_Brown21-Apr-09 4:39
Emmet_Brown21-Apr-09 4:39 
GeneralRe: finding a specific node in XML with given string Pin
Rob Philpott21-Apr-09 4:41
Rob Philpott21-Apr-09 4:41 
GeneralRe: finding a specific node in XML with given string Pin
Emmet_Brown21-Apr-09 4:45
Emmet_Brown21-Apr-09 4:45 
AnswerRe: finding a specific node in XML with given string Pin
fly90421-Apr-09 4:09
fly90421-Apr-09 4:09 
QuestionImage on Clipboard Pin
Anubhava Dimri21-Apr-09 2:43
Anubhava Dimri21-Apr-09 2:43 
Questionget a graphica in picturebox from one form to another [modified] Pin
R.Krishnakumar21-Apr-09 2:12
R.Krishnakumar21-Apr-09 2:12 
AnswerRe: get a graphica in picturebox from one form to another Pin
Rob Philpott21-Apr-09 3:23
Rob Philpott21-Apr-09 3:23 
QuestionInsert a class instance into a row in data table Pin
Hari.net21-Apr-09 1:01
Hari.net21-Apr-09 1:01 
AnswerRe: Insert a class instance into a row in data table Pin
Le centriste21-Apr-09 1:14
Le centriste21-Apr-09 1: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.