By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,417 Members | 1,178 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,417 IT Pros & Developers. It's quick & easy.

App Loses Focus Using Hide Method

P: n/a
My application is MDI. After bringing up my main form
(the parent), I then show a non-child form as a modal
dialog box (FormBorderStyle=FixedDialog, displayed using
the ShowDialog method from the main form). After the user
enters the required data and clicks OK, this form does a
Me.Hide to hide itself. As soon as the code hits the hide
method, any app that was active on the desktop before
starting my app (Excel, Word, etc. - it doesn't matter)
gets the focus and is laying on top of my main form. Very
This app is the result of a conversion from VB6 and
running on that platform the problem does not occur.
I have searched help, all of Microsoft's web sites,
online magazines, Yahoo, under the bed, you name it and
there is nothing to be found about this. Can anyone help?

Steve Blumenstein
Nov 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.