'Only allow legal button combinations to be set, one choice from each group
'These bit constants are defined in System.Windows.Forms.MessageBox
'Low-order 4 bits (0x000f), legal values: 0, 1, 2, 3, 4, 5
' next 4 bits (0x00f0), legal values: 0, &H10, &H20, &H30, &H40
' next 4 bits (0x0f00), legal values: 0, &H100, &H200
If ((Buttons And &HFI) > MsgBoxStyle.RetryCancel) OrElse ((Buttons And &HF0I) > MsgBoxStyle.Information) _
OrElse ((Buttons And &HF00I) > MsgBoxStyle.DefaultButton3) Then