hello there
you can use the resultmsgbox
Public Function resultmsgbox(ByVal StrMsg As String) As Object
Dim ans As MsgBoxResult
ans = MsgBox(StrMsg, MsgBoxStyle.YesNoCancel + MsgBoxStyle.Information, "Title Text")
Return ans
End Function
and on the buttons click event whose click will open the Dialog Box :
Dim res As MsgBoxResult = clslog.resultmsgbox("Message To Show on the MsgBox")
If res = MsgBoxResult.Yes Then
// if yes will pressed execute this code
End If
else if res = MsgBoxResult.No Then
// if no will pressed execute this code
end if
else if res = MsgBoxResult.Cancel Then
// if cancel will pressed execute this code
end if
End If
to open The PDF read the following articles :
http://www.codeguru.com/forum/archive/index.php/t-322006.html[
^]
or
http://www.justskins.com/forums/viewing-adobe-pdf-documents-16704.html[
^]
or
http://visualbasic.about.com/od/quicktips/qt/disppdf.htm[
^]
if you want to create a custom message box read :
http://www.java2s.com/Code/CSharp/GUI-Windows-Form/MessageBoxOptions.htm[
^]
best regards.