• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 173
  • Last Modified:

how to make changes in Registry through a code in Visual Basic in order to make changes in IE 5.0

I basically am  working on a application where a person signs in by providing  authentication details in a visual basic application. Now when he signs in through this application, Internet Explorer opens.I have made this application System Model. But i dont want the user to access the local drives through Internet Explorer.Which i am not able to control currently. I know i can stop access to local drives by making changes in Registry i.e. HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Restrictions. Please advice me how do i make changes in registry through visual basic.I have to changes the values when the application starts and again when the application ends.
0
apurvs
Asked:
apurvs
1 Solution
 
DocMCommented:
HOWTO: Use the Registry API to Save and Retrieve Setting
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q145679
0
 
SmallintCommented:
Sorry DocM I did't see you...
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
dc197Commented:
I can send you a whole bunch of .bas module files that have easy access to the registry like

MsgBox RegGet(HKLM, "Software\Policies\Microsoft", "Your String Name", "Default Value")

and to write:

RegPut(HKLM, "Software\Policies\Microsoft", "Your String Name", "Value to set", StringType)


Give me your email and I'll send them to you.
Daniel
0
 
apurvsAuthor Commented:
Dc197 you can mail me at apurvsharma@rediffmail.com. thanx
0
 
dc197Commented:
I have sent you the modules with explanations.
Hope this solves your question!
0
 
marconovaroCommented:

Have a look here:

"Complete regidtry control"
http://www.vbaccelerator.com/home/VB/Code/Libraries/Registry_and_Ini_Files/Complete_Registry_Control/article.asp

there is a class that simplifies the access to the registry
Hope this helps.
M
0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now