N
Newbie Coder
Hi all,
VB.NET 2003 ONLY PLEASE
I have a registry key (HKCU\Software\Newbie\SomeKey) of type string which
holds an XML string as follows:
<root formID="preferencesform" lang="english" ><global welcome="0"
lang="british" soundEffects="0" soundTheme="default" stayOnTop="0"
autoStart="0" /><main ><pos x="761" y="277" /><size width="240"
height="450" /></main><chat fontFamily="tahoma" fontSize="12"
inMsgColor="255" outMsgColor="3368448" /><video webcam="undefined"
/></root>
I need to read the key from the registry, replace the 'autoStart' value from
0 (zero) to 1 (one) & back using a checkbox control.
'Autostart' starts at character 135 & the zero is 11 characters on making it
char. 146. I will also need to do this for the 'stayOnTop' value too, but
both values will share the same method, just different positions.
How do I do this without creating a temporary XML document, changing it &
writing back to the registry?
TIA
VB.NET 2003 ONLY PLEASE
I have a registry key (HKCU\Software\Newbie\SomeKey) of type string which
holds an XML string as follows:
<root formID="preferencesform" lang="english" ><global welcome="0"
lang="british" soundEffects="0" soundTheme="default" stayOnTop="0"
autoStart="0" /><main ><pos x="761" y="277" /><size width="240"
height="450" /></main><chat fontFamily="tahoma" fontSize="12"
inMsgColor="255" outMsgColor="3368448" /><video webcam="undefined"
/></root>
I need to read the key from the registry, replace the 'autoStart' value from
0 (zero) to 1 (one) & back using a checkbox control.
'Autostart' starts at character 135 & the zero is 11 characters on making it
char. 146. I will also need to do this for the 'stayOnTop' value too, but
both values will share the same method, just different positions.
How do I do this without creating a temporary XML document, changing it &
writing back to the registry?
TIA