?
Solved

Change Proxy Setting in Internet OPtions

Posted on 2009-07-04
2
Medium Priority
?
325 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Accepted Solution

by:
Munawar Hussain earned 2000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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 …
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses
Course of the Month12 days, 19 hours left to enroll

777 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