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

VB6 Hides Modal Window

Wolfling
P: 9
I have a VB6 MDI Application with a few MDI child windows always open. When the application opens a modeless non-MDI child window, and that child opens a Modal window (eg common dialog FileOpen window), if the user then swaps to the MDI Parent window and then back to the non-MDI child window, I would expect the modal window to be displayed over the top of its modeless parent. This is not happening. The Modal FileOpen window is hidden behind its modeless parent until I open another window over the top of it (eg Notepad), and then close it (Notepad). Reproducible in XP Pro and Vista.

Any ideas how to stop this suspicious behaviour?
Nov 19 '07 #1
Share this Question
Share on Google+
1 Reply


AHMEDYO
100+
P: 112
HI...

you have two ways to control how dialog order displayed in your MDI form and Within Desktop Order, using Zorder VB Function and this function i was never use, and you can use SetWindowPos API Function and i think it will be helpful.

finally if it just VB behavior, as you said when you open any application over form it display correctly, you can use Form.Show again function it will repaint the window

GOOD LUCK
Nov 19 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.