Click here to Skip to main content
15,888,461 members
Home / Discussions / C#
   

C#

 
SuggestionC# WinForms RichTextBox Block-Style Selection Pin
Mr Cirwos13-Feb-15 6:56
Mr Cirwos13-Feb-15 6:56 
GeneralRe: C# WinForms RichTextBox Block-Style Selection Pin
Eddy Vluggen13-Feb-15 7:54
professionalEddy Vluggen13-Feb-15 7:54 
GeneralRe: C# WinForms RichTextBox Block-Style Selection Pin
Mr Cirwos13-Feb-15 22:42
Mr Cirwos13-Feb-15 22:42 
GeneralRe: C# WinForms RichTextBox Block-Style Selection Pin
Eddy Vluggen14-Feb-15 4:16
professionalEddy Vluggen14-Feb-15 4:16 
GeneralRe: C# WinForms RichTextBox Block-Style Selection Pin
Richard MacCutchan13-Feb-15 23:22
mveRichard MacCutchan13-Feb-15 23:22 
GeneralRe: C# WinForms RichTextBox Block-Style Selection Pin
Mr Cirwos13-Feb-15 23:34
Mr Cirwos13-Feb-15 23:34 
GeneralRe: C# WinForms RichTextBox Block-Style Selection Pin
Richard MacCutchan13-Feb-15 23:41
mveRichard MacCutchan13-Feb-15 23:41 
QuestionHow to add website into compatibility view ? Pin
namerg13-Feb-15 6:30
namerg13-Feb-15 6:30 
Hello,
I am not an expert in C# but this site helped a lot creating a mini application that launches IE9, modifies some registry keys and bingo. Now, I have to add a few modifications but launch IE11.

This is the code:
C#
//Select the RegistryHive you wish to read from 
            RegistryKey key00 = RegistryKey.OpenRemoteBaseKey(RegistryHive.CurrentUser, "");

            //Select the path within the hive
            RegistryKey subkeyAA = key00.OpenSubKey("Software\\Microsoft\\Internet Explorer\\BrowserEmulation\\ClearableListData", true);
            string[] namesAA = subkeyAA.GetValueNames();
            string YesUserFilter = "";
            string NoUserFilter = "";

            foreach (string name in namesAA)
            {
                if (name.Equals("UserFilter", StringComparison.CurrentCulture))
                {
                    // Found UserFilter
                    YesUserFilter = "1";                
                    break;
                }
                else
                {
                    // No Found UserFilter
                    NoUserFilter = "1";
                }
            }
            if (YesUserFilter == "1")
            {
                int myValue = (int)subkeyAA.GetValue("UserFilter");
                if (myValue != 0)
                {
                    //Console.WriteLine("Setting the right GE Recommendation");
                    subkeyAA.SetValue("UserFilter", "company.com", RegistryValueKind.Binary);

                }
            }
            if (NoUserFilter == "1")
            {
                //Console.WriteLine("Setting the right GE Recommendation");
                subkeyAA.SetValue("UserFilter", "company.com", RegistryValueKind.Binary);

            }
            subkeyAA.Close();


But the conditionals of YesUserFilter or NoUserFilter are blank, Thoughts ? Thanks for your help.
AnswerRe: Thoughts why Mini Application Stops Working once executed ? Pin
phil.o13-Feb-15 7:31
professionalphil.o13-Feb-15 7:31 
GeneralRe: Thoughts why Mini Application Stops Working once executed ? Pin
namerg13-Feb-15 7:40
namerg13-Feb-15 7:40 
AnswerRe: How to add website into compatibility view ? Pin
namerg13-Feb-15 8:09
namerg13-Feb-15 8:09 
AnswerRe: How to add website into compatibility view ? Pin
seemajoshii13-Feb-15 20:31
seemajoshii13-Feb-15 20:31 
QuestionCode Signing certificate Pin
Super Lloyd13-Feb-15 2:10
Super Lloyd13-Feb-15 2:10 
AnswerRe: Code Signing certificate Pin
manchanx13-Feb-15 3:02
professionalmanchanx13-Feb-15 3:02 
AnswerRe: Code Signing certificate Pin
Eddy Vluggen13-Feb-15 3:06
professionalEddy Vluggen13-Feb-15 3:06 
RantWant Opinion on school assignment Pin
Truck5313-Feb-15 1:51
Truck5313-Feb-15 1:51 
GeneralRe: Want Opinion on school assignment Pin
Freak3013-Feb-15 2:14
Freak3013-Feb-15 2:14 
GeneralRe: Want Opinion on school assignment Pin
Truck5313-Feb-15 4:58
Truck5313-Feb-15 4:58 
GeneralRe: Want Opinion on school assignment Pin
Truck5313-Feb-15 17:13
Truck5313-Feb-15 17:13 
GeneralRe: Want Opinion on school assignment Pin
OriginalGriff13-Feb-15 2:21
mveOriginalGriff13-Feb-15 2:21 
GeneralRe: Want Opinion on school assignment Pin
Eddy Vluggen13-Feb-15 3:03
professionalEddy Vluggen13-Feb-15 3:03 
GeneralRe: Want Opinion on school assignment Pin
OriginalGriff13-Feb-15 4:34
mveOriginalGriff13-Feb-15 4:34 
GeneralRe: Want Opinion on school assignment Pin
Eddy Vluggen13-Feb-15 4:52
professionalEddy Vluggen13-Feb-15 4:52 
GeneralRe: Want Opinion on school assignment Pin
Truck5313-Feb-15 5:01
Truck5313-Feb-15 5:01 
GeneralRe: Want Opinion on school assignment Pin
Dave Kreskowiak13-Feb-15 3:03
mveDave Kreskowiak13-Feb-15 3:03 

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.