I'm developing in VS.NET 2003 on WindowsXP Pro.
I'm seeing a strange intermittent bug where I will hide a form (using Me.Hide()), and the form remains visible. Debugging the form shows that the form properties are being set correctly (Me.Visible = False, yet the form is still visible!). This behavior happens on XP, and not on win2k.
I've been able to duplicate this issue in the debugger (on XP) by setting a breakpoint on the Me.Hide() line.
When the breakpoint is hit:
1) Focus on the window to be hidden
2) Drag the window to be hidden a short distance
3) Step to the next line of code in the debugger (executing Me.Hide())
4) Watch in amazement as the window does not hide (even though Me.Visible = false).
Any idea what I can do to make sure that a window hides when it's supposed to hide? I can't destroy this window, as there are ActiveX controls that are required by my main application.