| 发表于:2007-03-31 09:45:351楼 得分:0 |
private sub command1_click() dim msg, style, title, help, ctxt, response, mystring msg = "结束程序 ? " ' 定义信息。 style = vbyesno + vbcritical + vbdefaultbutton2 ' 定义按钮。 title = "结束程序 " ' 定义标题。 help = "demo.hlp " ' 定义帮助文件。 ctxt = 1000 ' 定义标题 ' 显示信息。 response = msgbox(msg, style, title, help, ctxt) if response = vbyes then ' 用户按下“是”。 mystring = "yes " ' 完成某操作。 end else ' 用户按下“否”。 mystring = "no " ' 完成某操作。 end if end sub | | |
|