Jump to content
Sign in to follow this  

2nd GUICreate without button in the task bar

Recommended Posts


Hello all,

I am creating 2 Gui in the same program. (when I click on a button the other GUi appears!) But I have 2 "clickable buttons" on the taskbar... and I would like only one (the one of the main Gui!)

Which attribute do I have to use?

#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>

$form1 = GUICreate("bla bla bla", 300, 215, -1, -1)
$GO = GUICtrlCreateButton("go", 50, 160, 196, 41)
GUISetState(@SW_SHOW, $form1)

While 1
    $nMsg = GUIGetMsg()
        Case $nMsg = $GUI_EVENT_CLOSE
        Case $nMsg = $GO
            $Form2 = GUICreate("", 420, 100,-1, -1,BitOR($WS_POPUP,$WS_BORDER))
            GUISetState(@SW_SHOW, $form2)
            ;some other stuff here


Share this post

Link to post
Share on other sites

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.