我試圖在VB中翻譯這段代碼,但我無法弄清楚如何去做......任何人都可以告訴我翻譯過程如何?OpenNetCf - C#到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 2012-08-02 16:07:03
謝謝...我試過但不起作用。我使用的Compact框架3.5 – 2012-08-02 16:21:01