Here below using syntax we will call a method from the "app" class. Put the following code into the "Open" event of the "app" class:
Code:
Dim strValue As String
Dim strTitle As String = "Mickey his weather forecast"
Dim strAction As String = "Good"
Dim strAlternativeAction As String = "Not good"
Dim strCancel As String = "Cancel"
Dim strMessage As String = "How is the weather at your place?"
Dim strExplanation As String = "This dialog ask you about your local weather,"
+ EndOfLine +_
"please be honest about it" + EndOfLine +_
"Thank you!"
Dim intIcon As Integer = MessageDialog.GraphicQuestion
strValue = ShowMSG (strTitle, strAction, strAlternativeAction,
strCancel, strMessage, strExplanation, intIcon)
// Showing result
MsgBox strValue
Bookmarks