-
Thank you very much for marnitzg.
Now my form problem has nearly been solved
But by th way, there are still little pitfalls. Users usually will use several programs at the same time. They may switch the focus to other programs like IE, MS Word, etc from my software and back, by clicking on the taskbar.
I found the toolbar windows of my software are always on top of the screen, so they cover partial areas of the other programs's windows.
So is there any way to make things consistent. i.e. When the focus is on my software, the toolbars here. When it's not, they dun show.
Thanks very much.
-
A follow-up question
Sorry I hope to ask one more question
You know, many ocassions when a dialog form is pop up, the programmer normally would disable the other parts of the software (like minimize, close, or clicking on another button on the main window or toolbar window) until the user has finsihed the dialog.
So I wanna to ask how can I achieve this in coding.
Thanks a lot again
-
I didn't see the previous posting so I am not sure what your previous problems were or how they were solved but if you want to show a form and not allow the user to work with the parent form then use the vbModal parameter with the show command on form1 like so:
Here the user will have to respond to form2 and exit/close it before they can continue to work with form1.
to allow the user to work with both forms you use the vbModeless parameter:
Code:
form2.show vbModeless
Another way would be to disable the main form and show the dialog form and re-enable the main form when the dialog form is closed/exited:
Code:
form1.enabled=false
form2.show vbModal
form1.enabled=true
I haven't actually tried the latter method but it looks like it should work in theory.
Hope this helps in someway, keep experimenting.
good luck.