Solved

Change Proxy Setting in Internet OPtions

Posted on 2009-07-04
2
301 Views
Last Modified: 2012-06-21
HI
I am using VB.net 2005
I am tring to drill down through the control panel / internet options /  connections / lan settings and then read & write to the proxy server checkbox  I would rather not touch the registry directly.

It was easy to open the Internet Options dialog (see code below),  but I have been unsuccessful in getting the handle for this dialog.  I have been trying findwindowex but that does not seem to work for me.

I would like to know how to get the handle for the "Internet Properties" window.   All help would be greatly appreciated

Thanks!


Dim VPN As Process = System.Diagnostics.Process.Start("inetcpl.cpl")

Open in new window

0
Comment
Question by:peispud
2 Comments
 
LVL 12

Accepted Solution

by:
needo_jee earned 500 total points
ID: 24777239
hi,

I am not sure about the way you are trying to change proxy settings.. however, I think you can change it via registry settings something like this..

Dim regKey As RegistryKey
regKey = Registry.CurrentUser.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Internet Settings", True)
regKey.SetValue("ProxyEnable", True, RegistryValueKind.DWord)

-thanks
0
 

Author Comment

by:peispud
ID: 24777318
The computer is for work purposes and the registry is locked.  I manually have to change the proxy settings several times a day.  It's a real hassle

If I can get the handles of that checkbox then I can use sendapi to turn on/off the proxy.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

932 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now