Wrox Programmer Forums
|
Visual Basic 2005 Basics If you are new to Visual Basic programming with version 2005, this is the place to start your questions. For questions about the book: Beginning Visual Basic 2005 by Thearon Willis and Bryan Newsome, ISBN: 0-7645-7401-9 please, use this forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2005 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 20th, 2007, 05:45 PM
Registered User
 
Join Date: Apr 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Network settings

I'm working on an app that changes network settings (ip, subnet mask, gateway, and proxy). It changes all these settings in the registry, but they don't seem to take effect. That is, even though the registry settings have changed, the computer continues to use the original network settings. Going into the IP Properties for the Local Area Connection still shows the old IP. Am I missing some way to change these settings or is there some additional step to get the new settings to set?


 
Old April 23rd, 2007, 10:56 AM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

It sounds like these values are read by processes that only do that reading when they 1st start, and they have started before your app runs.

Look for some way to trigger the processes to reread the registry settings, or look for a way to stop and restart the processes.
 
Old April 23rd, 2007, 01:13 PM
Registered User
 
Join Date: Apr 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I figured it out. Originally I was changing the tcp/ip settings for the registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\'service name'\Parameters\Tcpip.

What I was missing was that I also needed to change the tcp/ip settings for the registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Tcpip\Parameters\Interfaces\'service name'.

Thanks for your help though... :)






Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing Settings.settings when assembly is in GAC evandro.paula .NET Framework 2.0 0 September 25th, 2007 09:54 AM
Browser Settings... arjun_a ASP.NET 2.0 Basics 1 December 26th, 2006 03:00 AM
Printer Settings melvik C# 0 May 25th, 2004 02:11 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.