Do your own form with command button control array and call a function within.
'* Form = frmWZUP
'Form Level Declarations
Private mintResult as integer
Public Function WZUP() as integer
Me.Show vbModal ' Stiop excution until hidden
WZUP = mintResult ' Do before Unload
Unload Me
' Force complete unload, not just controls
Set frmWZUP = Nothing
End Function
Private Sub cmd_Click(Index as Integer)
mintResult = index
Me.Hide ' Resume execution after Show vbModal
End Sub
Hi 33216CLC
If you use the msgbox function then you're stuck with the
pre-defined button properties e.g.
vbOKOnly
vbAbortRetryIgnore
vbRetryCancel
etc.
But there is nothing preventing you from designing your own form/msgbox with all the custom buttons you want.
I have used it and it is much easier than the typical MSGBOX. You can customize up to 4 buttons, and customize the icon. On the VB2themax page, click on File Bank, I think. There are a number of good controls there, but that is the best on I have found. Let us know if it works for you. Good luck!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.