Hi
I Want to display a Form as System Modal. The best Example is Shutdown Dialog box. How can we create such forms.

try to change the border style.

try to change the border style.

Hi debasisdas
I want to show the form that the other forms or applications not get focus. Only My form should gain the focus. Others should be disabled. That so I give an example shutdown dialog. I dont mean the style of the form

form1.show vbmodal

form1.show vbmodal

Hi

This Code shows the Form modally to current application only. But i want to show the form modally for all the Application currently running (System wide).

why do you wanna do this?

Instead of using vbModal try vbSystemModal
this is ok in vb4 I don't know if it was carried over to later versions

i.e
[form1.show vbSystemModal]

rgds

Andrew

Instead of using vbModal try vbSystemModal
this is ok in vb4 I don't know if it was carried over to later versions

i.e
[form1.show vbSystemModal]

rgds

Andrew

Thanks
but it is not working. It shows error. vbSystemModal works only for MsgBox

Sorry about that didn't read the question properly
However did a quick serch and found How to create a system modal program in vb, the web address is http://support.microsoft.com/kb/q147817/

It shows how to call an API function for SetSysModalWindow.
haven't tried it so don't know if it will work
hope this helps

Rgds

Sorry about that didn't read the question properly
However did a quick serch and found How to create a system modal program in vb, the web address is http://support.microsoft.com/kb/q147817/

It shows how to call an API function for SetSysModalWindow.
haven't tried it so don't know if it will work
hope this helps

Rgds

Thanks for your help.
I read the article. They using SetSysModalWindow for System Modal,
In the article,

An equivalent Win32 API function for SetSysModalWindow does not exist. System modal windows contradict the concept of multitasking and thus are not implemented in Win32.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.