VB에서 코드 조각을 번역하려고했지만 어떻게 해야할지 알 수 없습니다. 번역자가 누구인지 보여 줄 수 있습니까? VB로 VB #
는 이벤트를 처리하기 위해 별도의 방법을 만들어야합니다 있도록private void WatchForDrives()
{
DeviceStatusMonitor monitor = new DeviceStatusMonitor(DeviceClass.FileSystem, false);
monitor.StartStatusMonitoring();
monitor.DeviceNotification += delegate(object sender, DeviceNotificationArgs e)
{
string message = string.Format("Disk '{0}' has been {1}.", e.DeviceName, e.DeviceAttached ? "inserted" : "removed");
MessageBox.Show(message, "Disk Status");
};
}
.NET의 버전은 무엇입니까? 그리고 단순한 인터넷 검색을 수행했다면 변환은 다소 사소한 것입니다. – Marlon
감사합니다 ... 나는 그것을 시도했지만 작동하지 않습니다. 나는 Compact Framework 3.5 –