Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2006-11-09
6
Medium Priority
?
456 Views
Last Modified: 2012-08-13
i need to save this in the registry -----> EditFlags          REG_Binary    00 00 01 00

c# please
0
Comment
Question by:joshuadavidlee
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 15

Accepted Solution

by:
ozymandias earned 2000 total points
ID: 17905280
RegistryKey rk = Registry.LocalMachine;
                  RegistryKey key = rk.CreateSubKey(@"Software\__MyTestApp");
                  string valuename = "EditFlags";
                  key.SetValue(valuename,new byte[]{00,00,01,00});
                  key.Close();
                  rk.Close();
0
 
LVL 15

Expert Comment

by:ozymandias
ID: 17905289
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.
0
 

Author Comment

by:joshuadavidlee
ID: 17905330
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
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 15

Expert Comment

by:ozymandias
ID: 17905357
Sorry, is that a question ?
0
 

Author Comment

by:joshuadavidlee
ID: 17905360
nope it worked just fine, i tested it in IE also and it behaved correctly
0
 
LVL 15

Expert Comment

by:ozymandias
ID: 17905394
Oh, Good :)
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question