i need to save this in the registry -----> EditFlags REG_Binary 00 00 01 00

i need to save this in the registry -----> EditFlags          REG_Binary    00 00 01 00

c# please
Who is Participating?

Improve company productivity with a Business Account.Sign Up

ozymandiasConnect With a Mentor Commented:
RegistryKey rk = Registry.LocalMachine;
                  RegistryKey key = rk.CreateSubKey(@"Software\__MyTestApp");
                  string valuename = "EditFlags";
                  key.SetValue(valuename,new byte[]{00,00,01,00});
You cannot control how the registry will store values that are passed using SWetValue and the registry type is interpreted from the object that is passed as the second argument.
However, an array of bytes will be stored as REG_BINARY.
joshuadavidleeAuthor Commented:
thanks, thats the key required if u have an app associated with a certain file extension and when someone clicks the file in IE it will automatically launch your app without popping up any boxes like save as or anything

like .rm for realplayer etc
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Sorry, is that a question ?
joshuadavidleeAuthor Commented:
nope it worked just fine, i tested it in IE also and it behaved correctly
Oh, Good :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.