嗨,我主要有这个
NetworkChange.NetworkAddressChanged += new NetworkAddressChangedEventHandler(AddressChangedCallback);
//The main also contains a form
而下面这个方法呢。
static void AddressChangedCallback(object sender, EventArgs e){
// would like to have a message box here that freezes the entire application
including the form as mentioned above , untill OK is pressed"
}