InputPanel Blues
-
I am writing a WindowsCE/Pocket PC application and need to enable/disable the InputPanel for text fields during GotFocus/LostFocus. Obviously, I can't just drop an InputPanel object on the form if this app is to be used for Windows CE as well. So, to enable/disable the InputPanle object, I wrote the following code: private sub setSIPDisplay() { if ( ipInput != null ) ipInput.Enabled = !ipInput.Enabled; } Now, it works fine until the user closes the form while the InputPanel is still enabled. Then I get an error. I placed the "dangerous code" in a try-catch block (on the assignment statement above) and I get the ever helpful and descriptive exception of "Exception". I am sure it has to do with the InputPanel being orphaned somehow, but I haven't figured out why. Any thoughts on how I can a) fix this error or b) get a better exception description so I can learn more. Thanks Dan Broomall