|
-
Feb 20th, 2002, 06:52 AM
#1
Thread Starter
New Member
Dialog window
How do I find out whether the active window is a dialog form or something else?
Please help --- I am new to VB.
Bye and thanks (in advance)
-
Feb 20th, 2002, 07:02 AM
#2
Bouncy Member
-
Feb 20th, 2002, 07:15 AM
#3
Thread Starter
New Member
Sorry. But that doesn't give whether the window is of type dialog box or not. I wanted to find out whether the window is a dialog box or MDI form or something else like that.
What I am doing in my program is the following :
1. First I am checking if any window with a particular string like "error" as the form caption (window title) is open.
2. Then I am making that window active using setActiveWindow.
3. After that I am pressing "enter" using sendkeys function.
What is happening is that even if the window open is not a dialog box (say MS Word is open) it is pressing "enter"s in it. I wan't the program to press "enter" only if it is a dialog with "OK" and "Cancel" buttons.
Please help,
Bye
-
Feb 20th, 2002, 07:58 AM
#4
Well ...
I don't know how you do it, but you can check that the form size is not resizable, and it is modal. It can either be application modal, meaning it is modal only in the particular application, or system modal, which means it locks up the entire system.
.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|