Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
FileSystemWatcher を使用してファイルの変更を監視できるのと同じように、IP アドレスの変更を監視する方法はありますか? tcp/ip 経由でマシンに接続していますが、IP アドレスが表示されるまでに時間がかかります。有効な IP アドレスが得られるまで、接続ボタンを暗くしたいと思います。
NetworkChangeクラスを確認してください。ネットワーク アドレスが変更されたときにイベントを発生させます。