msgbox

  • 14 years ago
    Hello,

    I got in my vbscript a function msgbox where you get a question where you can answer it with the buttons 'Ok' and 'Cancel'.
    But the msgbox that opens with the question isn't always the active window. So my question is, is it possible to set the msgbox always as the active window??

    Thanks,






  • 14 years ago

    try call msgbox("prompt",65536,"title")
    or call msgbox("prompt",MsgBoxStyle.MsgBoxSetForeground ,"")

    but it loses possibility of yes / no...
    i am not sure about vbscript possibilities of doing this...
    maybe if you firstly give some alertmsgbox on foreground, and after that you give that select msgbox... it will be foregrounded from previous I think...Pizza [pi]






Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“It works on my machine.” - Anonymous