سلام
من برای اشکار و مخفی کردن مقادیر در یوزر فرم به وسیله CheckBox از کد دستور زیر استفاده میکنم.
حالا من میخوام بجای CheckBox از CommandButton استفاده کنم
این کد را برای CommandButton چطور باید تغییر بدم
من برای اشکار و مخفی کردن مقادیر در یوزر فرم به وسیله CheckBox از کد دستور زیر استفاده میکنم.
کد PHP:
Private Sub CheckBox1_Click()
If CheckBox1.Value = True Then
TextBox1.Visible = False
TextBox2.Visible = False
TextBox3.Visible = True
TextBox4.Visible = True
Label1.Visible = False
Label2.Visible = False
Label3.Visible = True
Label4.Visible = True
CommandButton1.Visible = False
CommandButton2.Visible = True
Else
TextBox1.Visible = True
TextBox2.Visible = True
TextBox3.Visible = False
TextBox4.Visible = False
Label1.Visible = True
Label2.Visible = True
Label3.Visible = False
Label4.Visible = False
CommandButton1.Visible = True
CommandButton2.Visible = False
End If
End Sub
این کد را برای CommandButton چطور باید تغییر بدم
کامنت