Sign in to follow this  
Followers 0
bok

inputbox with no cancel button

3 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

thanks alot!

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  
Followers 0