Home All Groups Group Topic Archive Search About

Write to the registry

Author
6 Mar 2006 4:57 PM
Jonathan Smith
I need to be able to change the WordPad PageMargins in my program. I have
found the registry key where the values are stored, but it is stored in
binary. How do i write the binary value to the registry?

Author
6 Mar 2006 6:24 PM
Mattias Sjögren
Jonathan,

>How do i write the binary value to the registry?

You use a Byte array.



Mattias

--
Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Author
6 Mar 2006 6:41 PM
Herfried K. Wagner [MVP]
"Jonathan Smith" <JonathanSm***@discussions.microsoft.com> schrieb:
>I need to be able to change the WordPad PageMargins in my program. I have
> found the registry key where the values are stored, but it is stored in
> binary. How do i write the binary value to the registry?

You can use the 'Microsoft.Win32.Registry' class for this purpose.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>