Jump to content

Recommended Posts

Posted (edited)

I am a little confused and not sure what I am doing wrong.

I am trying to get a OK and Cancel button that is always on top. 

$MB_OKCANCEL 1 OK and Cancel
$MB_TOPMOST 262144 MsgBox() has top-most attribute set

 

But when I try to run this code. 

$Msg = MsgBox(1 & 262144, "Registration", "Would you like to continue?")

I get this.

Capture.PNG

Edited by SkysLastChance

You miss 100% of the shots you don't take. -Wayne Gretzky -Michael Scott

  • Moderators
Posted

Or use the MsgBoxConstants file. This works for me:

#include <MsgBoxConstants.au3>

MsgBox($MB_OKCANCEL + $MB_TOPMOST, "Registration", "Would you like to continue?")

 

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...