VB.Net - Excel Spreadsheet and MessageBox
Posted on 2013-06-07
Good Day Experts!
I have a little application here that ouputs an Excel spreadsheet. I have added functionality to email and save automatically. However, I need to be able to review the figures in the spreadsheet before emailing. So, I put a messageBox in to temprarily stop processing to remind the User to review the figures.
Only issue I have is when the messageBox pops-up it is behind the spreadsheet. How can I make it be in front?
Here is my code for the MessageBox:
Dim Result As DialogResult = MessageBox.Show("Review the figures on the spreadsheet. Click Yes to save/auto-email or No to re-run.", "Check Values", MessageBoxButtons.YesNo)