Use Visual C # To create a personalized IE browser

Source: Internet
Author: User

Internet Explorer is the most widely used browser on the Windows platform, but the Internet Explorer provided by Microsoft is so simple that it has no special features. How can we modify Internet Explorer using programs, what about creating IE with its own characteristics? After thinking, I found the method for modifying IE through the registry. Next I will introduce this method to you.

First, familiarize yourself with the methods and functions for modifying the Registry in C. The Registry class and RegistryKey class are provided in VC # To perform Registry operations. The Registry class encapsulates the seven basic keys of the Registry:

Registry. ClassesRoot corresponds to the HKEY_CLASSES_ROOT primary key
Registry. CurrentUser corresponds to the HKEY_CURRENT_USER primary key
Registry. LocalMachine corresponds to the HKEY_LOCAL_MACHINE primary key
Registry. User corresponds to the HKEY_USER primary key
Registry. CurrentConfig corresponds to the primary key of HEKY_CURRENT_CONFIG
Registry. DynDa corresponds to the HKEY_DYN_DATA primary key
Registry. PerformanceData corresponds to the HKEY_PERFORMANCE_DATA primary key.

The RegistryKey class encapsulates basic operations on the registry, including reading, writing, and deleting. The main functions are as follows:

OpenSubKey (string name) is used to open a specified subkey.
The GetSubKeyNames () method is used to obtain the names of all subkeys under the primary key. The returned value is a string array.
The GetValueNames () method is used to obtain all the key names in the current subkey, and its return value is also a string array.
The GetValue (string name) method specifies the key value of a key.

The written functions include:

The CreateSubKey (string name) method adds a subkey.
SetValue (string name, string value) is used to set the key value of a key.
Deleted functions:

DeleteSubKey () method: deletes a specified subkey.
DeleteSubKeyTree () method:

This method completely deletes the specified sub-Key Directory, that is, deleting the sub-key and all sub-keys below the sub-key.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.