Alright I know that this question is asked all too often on vbForums but I am running into this problem and none of the posts have been clearly answered, a majority of them just redirect to some deprecated VB6 code that cannot be transferred easily to VB.Net. I was wondering if anyone would be able to help me find the code to refresh my Local Area Network settings on a windows seven computer.

I have code that will set all of the registry values that I need. (I have read on other posts that this is not the best way but then they just link to old non-.Net code that will not fit into my project.) I was wondering what exactly the 'Ok' button when you exit the LAN Settings window does, because this part is what actually refreshes the Ip of the computer to use proxy settings set by the registry values, I was hoping to have my program only be one button, that would do all of this without it opening the LAN Dialogue (requiring further human interaction.)

I would post my current code but the code works perfectly as I have already said (well in editing the registry) and as such I don't find a need to post the source, but if someone asks for it I would give it to them, I just don't like showing an unfinished product that needs some key feature fixed, I mean that is part of the whole 'debugging' method but due to the fact that I don't plan on editing the current code other than tacking on the refresh-code I never saw the need. (run on sentence for the win)

Hoping for help soon
~HunterWould