How to determine display state of a form - Modal or Modeless

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

How to determine display state of a form - Modal or Modeless

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:23 pm

by Denise Spiers >> Tue, 4 Apr 2000 2:11:47 GMT

I need to know if the active form is modal or modless as if it is modal I do not want to allow a form to be shown as modeless.

My first thought was to use an exception handler, but no exception occurs. I have also found an example of how to do this in VB by checking for the existence of the WS-DISABLED setting in all other forms Window Style (VB modifies the window style of all other forms to contain WS_DISABLED when a form is displayed modal).

Do you know how I can determine if the active form is modal?
If not, do you have any suggestions of what I might try next ?

Thanks,

Denise.

Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 32 guests

cron