I don't really understand what it is you are trying to accomplish (I'm
sleepy

but if you need to take action when you change locations, maybe
the adapter status query would solve your problem efficiently. When you
detect a connection is physically lost set a flag, keep polling the
connection state, when the connection state indicates you have a phys.
connection again run some net utils to try and determine what network you
are, then take appropriate action.
Like I said, I don't really understand what you want to do so the above
suggestion could be garbage!
"Nicholas Paldino [.NET/C# MVP]" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> Well, yes, that's going to kill your computer's performance running it
> like that.
>
> Why not just have a script or something which will change your proxy
> settings when you are at school, and another one to set them back when you
> are at home?
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - (E-Mail Removed)
>
> <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> It is a program that runs in the background and turns on the proxy in
> IE when Im in school. Right now I have a timer that check the
> connection every second, and that fells kind of lame ^^
>
>
> On 27 Apr, 18:21, "Nicholas Paldino [.NET/C# MVP]"
> <m...@spam.guard.caspershouse.com> wrote:
>> No, not really. A good number of users are connected to the internet
>> all the time now from home (either behind a firewall/NAT router or
>> directly
>> connected to a cable modem which is always on), or they are at work, in
>> which case they access the internet through proxy servers, and are always
>> connected to their internal network. Such an event would almost never
>> get
>> fired.
>>
>> What are you trying to do?
>>
>> --
>> - Nicholas Paldino [.NET/C# MVP]
>> - m...@spam.guard.caspershouse.com
>>
>> <warborns...@gmail.com> wrote in message
>>
>> news:(E-Mail Removed)...
>>
>>
>>
>> > is there some kind of an event that starts when I establish a
>> > connection to internet?- Dölj citerad text -
>>
>> - Visa citerad text -
>
>
>