#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 623, 449, 192, 114)
$Radio1 = GUICtrlCreateRadio("Radio1", 120, 56, 121, 17)
$Radio2 = GUICtrlCreateRadio("Radio2", 120, 104, 97, 17)
$Radio3 = GUICtrlCreateRadio("Radio3", 120, 144, 97, 33)
$Button1 = GUICtrlCreateButton("Button1", 112, 288, 105, 25)
$Button2 = GUICtrlCreateButton("Button2", 256, 280, 105, 33)
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 128, 40, 161, 17)
$Checkbox2 = GUICtrlCreateCheckbox("Checkbox2", 120, 80, 169, 25)
$Checkbox3 = GUICtrlCreateCheckbox("Checkbox3", 120, 128, 177, 17)
$Checkbox4 = GUICtrlCreateCheckbox("Checkbox4", 120, 168, 137, 25)
$Checkbox5 = GUICtrlCreateCheckbox("Checkbox5", 120, 208, 137, 25)
GUICtrlSetState($Checkbox1, $gui_hide)
GUICtrlSetState($Checkbox2, $gui_hide)
GUICtrlSetState($Checkbox3, $gui_hide)
GUICtrlSetState($Checkbox4, $gui_hide)
GUICtrlSetState($Checkbox5, $gui_hide)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
GUICtrlSetState($Checkbox1, $gui_hide)
GUICtrlSetState($Checkbox2, $gui_hide)
GUICtrlSetState($Checkbox3, $gui_hide)
GUICtrlSetState($Checkbox4, $gui_hide)
GUICtrlSetState($Checkbox5, $gui_hide)
GUICtrlSetState($Radio1, $gui_show)
GUICtrlSetState($Radio2, $gui_show)
GUICtrlSetState($Radio3, $gui_show)
Case $Button2
GUICtrlSetState($Checkbox1, $gui_show)
GUICtrlSetState($Checkbox2, $gui_show)
GUICtrlSetState($Checkbox3, $gui_show)
GUICtrlSetState($Checkbox4, $gui_show)
GUICtrlSetState($Checkbox5, $gui_show)
GUICtrlSetState($Radio1, $gui_hide)
GUICtrlSetState($Radio2, $gui_hide)
GUICtrlSetState($Radio3, $gui_hide)
Case $Radio1
$Radio1 = MsgBox(4 + 64, "tetst", "test?")
If $Radio1 = 6 Then
_Radio1()
Else
EndIf
EndSwitch
WEnd
Func _Radio1()
Exit
EndFunc
问题就是只要的了 麻烦老师看看 选择$Radio1 然后点否 再点$button2 就出问题了