G
Graeme
2nd posting ...
How do I force messagebox to close after OK button click? I don't explicity
'close' the dialog. Maybe
I should somehow? See code below, where I do some database work after OK
click ...in this case, msgbox is displayed for several minutes. Is there a
DoEvents or something which can be applied?
Thanks for your help!
Graeme
myResult = MessageBox.Show("Are you sure you want to update ODRC lives and
costs? This process updates the assets database table and can take several
minutes.", "Update ODRC?", MessageBoxButtons.YesNo, MessageBoxIcon.Question,
MessageBoxDefaultButton.Button1)
If myResult = DialogResult.No Then gbxODRCRequirements.Visible = False :
Exit Sub
If myAssetType = "Equipment" Then
RecalcODRC()
ElseIf myAssetType = "Structures" Then
RecalcPoleODRC()
End If
....and so on.
How do I force messagebox to close after OK button click? I don't explicity
'close' the dialog. Maybe
I should somehow? See code below, where I do some database work after OK
click ...in this case, msgbox is displayed for several minutes. Is there a
DoEvents or something which can be applied?
Thanks for your help!
Graeme
myResult = MessageBox.Show("Are you sure you want to update ODRC lives and
costs? This process updates the assets database table and can take several
minutes.", "Update ODRC?", MessageBoxButtons.YesNo, MessageBoxIcon.Question,
MessageBoxDefaultButton.Button1)
If myResult = DialogResult.No Then gbxODRCRequirements.Visible = False :
Exit Sub
If myAssetType = "Equipment" Then
RecalcODRC()
ElseIf myAssetType = "Structures" Then
RecalcPoleODRC()
End If
....and so on.