See if i had one command button how would i get it to change captions when it has been clicked and when its been clicked it changed name and also opens up another new form i had this code in mind but it dosent seem to work.
VB Code:
Private Sub Command2_Click() If Command2.Caption = "Search" Then Form2.Show ElseIf If Command2.Caption = "Stop Search" Then Form3.Show End If End Sub




Reply With Quote