GUICreate("Combo-Tut", 280, 80) $cmbCombo = GUICtrlCreateCombo("", 10, 5, 260, 20) GUICtrlSetData($cmbCombo, "|Fall 1|Fall 2|Fall 3") $btnEx = GUICtrlCreateButton("Example 1-3", 190, 40, 80, 22) GUISetState() While True $nMsg = GUIGetMsg() Switch $nMsg Case -3 ;i $GUI_EVENT_CLOSE ExitLoop Case $btnEx ;i Example 1 MsgBox(0, "1. Example", GUICtrlRead($cmbCombo)) ;i Example 2 $comboRead = GUICtrlRead($cmbCombo) If $comboRead = "Fall 1" Then MsgBox(64, "2. Example", "Der Erste.") ElseIf $comboRead = "Fall 2" Then MsgBox(64, "2. Example", "Der Zweite.") ElseIf $comboRead = "Fall 3" Then MsgBox(64, "2. Example", "Der Dritte.") Else MsgBox(48, "2. Example", "Der Ausnahmefall.") EndIf ;i Example 3 $comboRead = GUICtrlRead($cmbCombo) $Flag = 64 $sHeader = "3. Example" Switch $comboRead Case "Fall 1" $Msg = "Der Erste." Case "Fall 2" $Msg = "Der Zweite." Case "Fall 3" $Msg = "Der Dritte." Case Else $Flag = 48 $sHeader = "Oh oh" $Msg = "Keiner der definierten Fälle !" EndSwitch MsgBox($Flag, $sHeader, StringFormat("%s \n\n %s", $comboRead, $Msg) & @TAB) EndSwitch WEnd ; Ende