求教怎样使按钮满足条件才能使用
各位大神,我想使cmdNext按钮在TEXT1,TEXT2,TEXT3都输入数值之后才能按,之前都是灰色,以下是我的程序,可是不能用,请问错在哪里了Private Sub Frame1_DragDrop(Source As Control, X As Single, Y As Single)
End Sub
Private Sub Form1_Load()
If Len(Text1) = 0 And Len(Text2) = 0 And Len(Text3) = 0 Then
cmdNext.Enabled = False
Else
cmdNext.Enabled = True
End If
End Sub
Private Sub cmdClear_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
End Sub
Private Sub cmdNext_Click()
Form2.Show
form1.Hide
End Sub