Course Hero Logo

CODE.docx - CODE Private Sub CommandButton1_Click() Dim...

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 1 - 4 out of 6 pages.

CODEPrivate Sub CommandButton1_Click()Dim Answer As VbMsgBoxResultAnswer = MsgBox("How are you?", vbYesNo + vbQuestion + vbDefaultButton1, "Welcome")If Answer = vbYes ThenMsgBox "Line 1" & vbNewLine & "Line 2"ElseIf Answer = vbNo ThenMsgBox "Line 1" & vbNewLine & "Line 2"End IfExit SubEnd SubButange sa last part ng “your response has been recorded” TITLE”Congratulations”1.Sanan do you want toclose this window– TITLE “CLOSE WINDOW”2.3.4.5.6. TITLEstring message ="Do you want to close this window?";7. string title ="Close Window";8. MessageBoxButtons buttons = MessageBoxButtons.YesNo;9. DialogResult result = MessageBox.Show(message, title, buttons);10.if(result == DialogResult.Yes) {11.this.Close();12.}else{13.// Do something14.}
A teacher is a compass that activates the magnets of curiosity, knowledge, and wisdom in the pupils. –Ever GarrisonExit SubEnd SubPrivate Sub CommandButton1_Click()
Dim Answer As VbMsgBoxResultAnswer = MsgBox(" Hi, how are you? Are you happy today? ", vbYesNo + vbQuestion +vbDefaultButton1, "WELCOME, SIR WARNER R. GUYANO JR.")If Answer = vbYes ThenMsgBox "Wow, it's good to know that you're happy. Thanks G! " & vbNewLine & " ", vbOKOnly, "G R EA T \(^_^)/ "ElseIf Answer = vbNo Then

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 6 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags
Single person, Dim answer, SIR WARNER R GUYANO JR

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture