how do i write checkbox to....

  • Thread starter Thread starter Supra
  • Start date Start date
S

Supra

how do i write checkbox1 boolean to xml
in vb6 i can only do cstr( checkbox1.value) but in vb.net can't write
to xml. i am doing irc chat similar to mirc or pirch chat.

rw.WriteConfigInfo("User Modes", chkInvisible.Text,
chkInvisible.Checked, "PirateChat.xml")


in procedure events:
' Both the Key and the Value are filled
' Find the key
node1 =
(Doc.DocumentElement).SelectSingleNode("/configuration/" & aSection &
"/" & aKey) <======= error occured in here.

does ne 1 know how to write chebox to xml?
regards,
 
Supra said:
how do i write checkbox1 boolean to xml
in vb6 i can only do cstr( checkbox1.value) but in vb.net can't write
to xml. i am doing irc chat similar to mirc or pirch chat.

rw.WriteConfigInfo("User Modes", chkInvisible.Text,
chkInvisible.Checked, "PirateChat.xml")


in procedure events:
' Both the Key and the Value are filled
' Find the key
node1 =
(Doc.DocumentElement).SelectSingleNode("/configuration/" & aSection &
"/" & aKey) <======= error occured in here.

does ne 1 know how to write chebox to xml?
regards,

Can't you use the Convert.ToString() method? It should work similar like
cstr in vb6.

Yves
 
i tried this b4. i but i want to save 1 or 0 to xml file
An unhandled exception of type 'System.Xml.XPath.XPathException'
occurred in system.xml.dll
Additional information: System error.
 
don't worry about me. i just solved it. i can evern write to xml. thank
goddness! 8-)
regards,
 
Back
Top