Excel365
Thành viên tích cực


- Tham gia
- 29/10/10
- Bài viết
- 865
- Được thích
- 127
- Giới tính
- Nam


Private Sub OptionButton1_Click()
Ngaysinh.Enabled = True
Namsinh.Enabled = False
End Sub
Private Sub OptionButton2_Click()
Ngaysinh.Enabled = False
Namsinh.Enabled = True
End Sub


Rồi nếu muốn xoá dữ liệu trên textbox thì như thế nào anhCode đơn giản thế này thôi!
PHP:Private Sub OptionButton1_Click() Ngaysinh.Enabled = True Namsinh.Enabled = False End SubNếu muốn ẩn textbox thì thay Enable bằng Visible.PHP:Private Sub OptionButton2_Click() Ngaysinh.Enabled = False Namsinh.Enabled = True End Sub


Rồi nếu muốn xoá dữ liệu trên textbox thì như thế nào anh
[h=2]Code tuỳ chọn Option[/h]