Jump to content
Sign in to follow this  
bok

inputbox with no cancel button

Recommended Posts

bok

is there a way to remove the cancel button from the inputbox?

Share this post


Link to post
Share on other sites
Szhlopp

is there a way to remove the cancel button from the inputbox?

Use this:

#include <GUIConstants.au3>


$Input = GUICreate("Input", 329, 125, 194, 122)
$Input1 = GUICtrlCreateInput("", 11, 66, 307, 21)
$Label1 = GUICtrlCreateLabel("Please enter the password", 9, 9, 129, 17)
$Button1 = GUICtrlCreateButton("OK", 100, 94, 112, 26)
GUISetState(@SW_SHOW)


While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
            

    EndSwitch
WEnd

Then when your done, GUIDelete($input)

Edited by Szhlopp

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.