How can I say- On Command4_Click MsgBox "Ok"-?
Ex: when the user clicks Command4 a labels width changes, but when the labels width = "455" then on the next click on Command4, a message box will pop up. How do i do that???
:confused:
Printable View
How can I say- On Command4_Click MsgBox "Ok"-?
Ex: when the user clicks Command4 a labels width changes, but when the labels width = "455" then on the next click on Command4, a message box will pop up. How do i do that???
:confused:
VB Code:
Private Sub Command4_Click() If Label1.Width >= 455 Then MsgBox "OK" Exit Sub End If Label1.Width = Label1.Width + 1 End Sub