vb.net - Complex MsgBoxResult.No function VISUAL BASIC -
i've made button1 if click on it starts timer. in timer_tick typed label7.text = "l o d n g". i've made exit (button2). want code if label7.text = "l o d n g" msgboxresult.no in button2 button1.enabled = true . here video how want that: http://www.youtube.com/watch?v=4uryhd0xa8i&feature=youtu.be
here code button2 (exit)
dim msg string dim title string dim style msgboxstyle dim response msgboxresult msg = "are sure want exit?" ' define message exit." style = msgboxstyle.defaultbutton2 or _ msgboxstyle.question or msgboxstyle.yesno title = "exit" ' display message. response = msgbox(msg, style, title) if response = msgboxresult.no if label7.text = "l o d n g" button1.enabled = true button5.enabled = false textbox1.enabled = true end if end if if response = msgboxresult.yes me.close() end if
i do:
if response = msgboxresult.no button1.enabled = true
but important label7 mentioned, because label7 shows when timer1 starts. please don't know happening.
Comments
Post a Comment