Is it posible to change state on GUICtrlCreateInput when input alredy enter.
Or moust I use GUICtrlDelete and create new.
I need to show password if Checkbox is selected.
#include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> $Form1 = GUICreate("Form1", 615, 438, 192, 124) $Input1 = GUICtrlCreateInput("", 32, 48, 217, 21,$ES_PASSWORD) $Checkbox1 = GUICtrlCreateCheckbox("ShowPassword", 32, 80, 241, 17) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Checkbox1 If _IsChecked($Checkbox1) Then GUICtrlSetState($Input1, ??????????????) Else GUICtrlSetState($Input1, $ES_PASSWORD) EndIf EndSwitch WEnd Func _IsChecked($idControlID) Return BitAND(GUICtrlRead($idControlID), $GUI_CHECKED) = $GUI_CHECKED EndFunc ;==>_IsChecked