This tip was submitted to the VS.NET Info Center by member Rick Spiewak. Please let other users know how useful it is by rating it below. Do you have a tip or code of your own you'd like to share? Submit it here.
When switching from one form to another in the .NET Compact Framework, it is important to do things in the right order.
First, show the new form. Then, hide the current form -- otherwise, both forms may remain hidden!
If the new form shows as disabled, you may have to enable it. While this method works, it also raises an exception. This appears to be a bug -- the workaround is to embed the method in a Try block.
Form2.Show() Me.Hide() Try Form2.Enabled = True Catch ex As Exception End Try