I have a VSTO Add-in for Word 2007. It contains several windows forms - some small with few controls, some quite large with numerous controls.
I have noticed two problem areas in testing my application, and hoping someone might have some suggestions:
1. When the form is displayed (using ShowDialog), it paints slowly - so you can see it "constructing" itself momentarily. In VB6, I was able to add a DoEvents immediately after calling Show(), which would cause the form to appear more suddenly. I am using SuspendLayout and ResumeLayout in all the right places, I believe. Are there any tricks to make the forms appear in a snappier fashion
2. One of my testers is having trouble with the forms going away when she clicks OK. She clicks OK and the form partially goes away but the majority of the form remains on the screen. She can display other forms (in other words, the 'ghost' fo the form still appears, but it doesn't keep her from performing other actions). The OK button does have the DialogResult of OK and also I have tried using Close() behind the button. This has happened to her both on her laptop and a different PC. I saw it happen for her, but it does not happen for me.
Thanks for any help you can provide.
PS - This behavior is occuring for both my small and large forms, so it doesn't seem to be specific to any one specific form in my app.
kewpcg