Solved

Change Proxy Setting in Internet OPtions

Posted on 2009-07-04
2
311 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:
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
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…

733 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