Click here to Skip to main content
15,887,676 members
Home / Discussions / C#
   

C#

 
AnswerRe: What exactly does the '@' symbol do in front of a string? Pin
Eslam Afifi31-Aug-08 14:08
Eslam Afifi31-Aug-08 14:08 
GeneralRe: What exactly does the '@' symbol do in front of a string? Pin
jacobjordan31-Aug-08 14:57
jacobjordan31-Aug-08 14:57 
AnswerRe: What exactly does the '@' symbol do in front of a string? Pin
Timmy Kokke1-Sep-08 0:02
Timmy Kokke1-Sep-08 0:02 
QuestionKEYPRESS SPY Pin
nelsonpaixao31-Aug-08 13:18
nelsonpaixao31-Aug-08 13:18 
AnswerRe: KEYPRESS SPY Pin
Sunset Towers31-Aug-08 13:55
Sunset Towers31-Aug-08 13:55 
AnswerRe: KEYPRESS SPY Pin
Harvey Saayman31-Aug-08 20:44
Harvey Saayman31-Aug-08 20:44 
GeneralRe: KEYPRESS SPY Pin
nelsonpaixao1-Sep-08 12:49
nelsonpaixao1-Sep-08 12:49 
QuestionEditing Registry For Default Browser PinPopular
Abydosgater31-Aug-08 13:18
Abydosgater31-Aug-08 13:18 
This topic is more about the registry then C# itself as i already know how to edit the registry in C#.

I have created a basic webbrowser that i have added some personal features to with the .NET WebBrowser control. I want to be able to set this as my default webbrowser that opens urls when clicked say in an msn convo or when put in the "Run" box.

I am using the following code to edit the registry:

string root = "htmlfile\\shell\\open\\command";

RegistryKey rKey = Registry.ClassesRoot.OpenSubKey(root, true);
rKey.SetValue("", Application.ExecutablePath + " %1");
rKey.Close();

And that works fine, It edits the registry to the path for my browser, and it also does the same in HKEY_CURRENT_USER with the same path.

But yet still when i click a link or run a url in the run box it opens Firefox.

Could someone offer any advice on how to set it to my browser please?
Thanks for your time in reading :]
QuestionVisual Studio 2008 Report Viewer Pin
Jacob Dixon31-Aug-08 12:58
Jacob Dixon31-Aug-08 12:58 
AnswerRe: Visual Studio 2008 Report Viewer Pin
Jacob Dixon1-Sep-08 2:31
Jacob Dixon1-Sep-08 2:31 
QuestionWriting to a file at the specified position Pin
jacobjordan31-Aug-08 11:00
jacobjordan31-Aug-08 11:00 
AnswerRe: Writing to a file at the specified position Pin
Wendelius31-Aug-08 11:07
mentorWendelius31-Aug-08 11:07 
GeneralRe: Writing to a file at the specified position Pin
jacobjordan31-Aug-08 11:29
jacobjordan31-Aug-08 11:29 
GeneralRe: Writing to a file at the specified position Pin
Wendelius31-Aug-08 11:45
mentorWendelius31-Aug-08 11:45 
Questiontime Pin
NiloofarNoroozi31-Aug-08 10:34
NiloofarNoroozi31-Aug-08 10:34 
AnswerRe: time Pin
Dr. Emmett Brown31-Aug-08 10:54
Dr. Emmett Brown31-Aug-08 10:54 
AnswerRe: time Pin
User 665831-Aug-08 10:54
User 665831-Aug-08 10:54 
AnswerRe: time Pin
Blue_Boy31-Aug-08 12:49
Blue_Boy31-Aug-08 12:49 
AnswerRe: time Pin
Christian Graus31-Aug-08 13:04
protectorChristian Graus31-Aug-08 13:04 
GeneralRe: time Pin
Harvey Saayman31-Aug-08 20:45
Harvey Saayman31-Aug-08 20:45 
GeneralRe: time Pin
Roger Alsing31-Aug-08 22:00
Roger Alsing31-Aug-08 22:00 
GeneralRe: time Pin
Mark Churchill31-Aug-08 22:09
Mark Churchill31-Aug-08 22:09 
GeneralRe: time Pin
Kevin Marois2-Sep-08 7:23
professionalKevin Marois2-Sep-08 7:23 
AnswerGet out of programming... Pin
leckey31-Aug-08 15:34
leckey31-Aug-08 15:34 
QuestionMDI Form Menu problem in C# windows application Pin
fqn31-Aug-08 9:26
fqn31-Aug-08 9:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.