Solved

Change Proxy Setting in Internet OPtions

Posted on 2009-07-04
2
298 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
Comment Utility
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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

763 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

7 Experts available now in Live!

Get 1:1 Help Now