VB Snippet – Keep a MessageBox() OnTop

‘ MessageBoxOptions.ServiceNotification is the key to doing it

Dim result As DialogResult = MessageBox.Show(“The Previously Calibrated Value Is: ” & PreviouslyCalibratedValue & vbCrLf & “Do you want to overwrite?”, “Overwrite Confirm”, MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1, MessageBoxOptions.ServiceNotification)

If result = DialogResult.Yes Then ‘ is ok to overwrite the existing calibration value in the file
IsOKToOverwrite = True
Else
IsOKToOverwrite = False
End If