YuChan 0 Posted Wednesday at 03:18 AM Hello, I have one problem, i have one dialog box and if i close with X all program close. How to hide dialog box and not close all program ? THX Share this post Link to post Share on other sites
JLogan3o13 1,621 Posted Wednesday at 05:40 AM Post your code "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! Share this post Link to post Share on other sites
YuChan 0 Posted Wednesday at 07:21 AM $Form2 = GUICreate("Dialog", 319, 150, 684, 408) $GroupBox1 = GUICtrlCreateGroup("", 8, 1, 305, 97) Global $Combo1 = GUICtrlCreateCombo("Config 1 - Vide", 88, 56, 145, 25) $Label1 = GUICtrlCreateLabel("Choisissez votre Nom", 80, 16, 163, 24) GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif") GUICtrlCreateGroup("", -99, -99, 1, 1) Global $ButtonOk = GUICtrlCreateButton("&OK", 73, 107, 75, 25) Global $ButtonCancel = GUICtrlCreateButton("&Cancel", 170, 107, 75, 25) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd It's one dialog box Share this post Link to post Share on other sites
Danp2 878 Posted Wednesday at 03:16 PM Replace the Exit command, which terminates the script, with a more appropriate command (ie: ExitLoop, Return, etc) [UDF] WebDriver Latest version Wiki FAQs Share this post Link to post Share on other sites
Melba23 3,396 Posted Wednesday at 06:25 PM YuChan, I suggest reading the Managing Multiple GUIs tutorial in the Wiki. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Share this post Link to post Share on other sites