Can someone tell me what's wrong with this block of skeleton code so far??
Far as I can see, there's nothing wrong here. I may be overlooking something as I am tired at the momentCode:protected override void WndProc(ref Message m) { // Listen for operating system messages. switch (m.Msg) { case DBT_DEVICEARRIVAL: MessageBox.Show("A device has been docked"); break; case DBT_DEVICEREMOVECOMPLETE: MessageBox.Show("A Device has been removed"); break; default:<<=========== This part gets underlined in blue with the message: Control cannot fall through from one case label to another. MessageBox.Show("Nothing detected"); break; } base.WndProc(ref m); }//end wndProc