Preview: show a message when user clicks on exporting to email
Posted: Fri Sep 07, 2007 6:26 am
In preview (not the designer one, the direct report preview) i need to show a messagebox if the user presses the "Send E-Mail" button. Then, after the message, the elaboration must continue with your default e-mail export dialog.
I have seen the ProcessSendEMail event (and the ClickSendEMailButton event that would be ok), i have handled it and i show my custom message in it, but after the message the elaboration stops so your default export window does not appear.
Is there a way to make appear a custom messagebox when user click "Send e-mail" and then the normal elaboration goes on?
This is the AddHandler:
This is the handler routine:
Thanks.
I have seen the ProcessSendEMail event (and the ClickSendEMailButton event that would be ok), i have handled it and i show my custom message in it, but after the message the elaboration stops so your default export window does not appear.
Is there a way to make appear a custom messagebox when user click "Send e-mail" and then the normal elaboration goes on?
This is the AddHandler:
Code: Select all
AddHandler mPreviewControl.ProcessSendEMail, New EventHandler(AddressOf Me.mPreviewControl_ProcessSendEMail)
Code: Select all
Private Sub mPreviewControl_ProcessSendEMail(ByVal sender As Object, ByVal e As System.EventArgs)
System.Windows.Forms.MessageBox.Show("This is my message")
End Sub