Trowa
asked on
Set DTPicker's Checkbox at run time?
Hi,
How to set the DTPicker's checkbox to visible and vice versa in runtime? Thanks.
How to set the DTPicker's checkbox to visible and vice versa in runtime? Thanks.
ASKER
No, this will make the whole control invisible, i'm using the DTPicker, and just want its checkbox to be visible and invisible. Can i do this? thanks.
You just need to know what the checkbox is called and then just make is visible or invisible as marcoszorrilla has indicated.
[checkbox1].visible=false or [checkbox1].visible=true
marcoszorrilla, I am really just presenting what you said in a different way is all.
Just trying to help!
[checkbox1].visible=false or [checkbox1].visible=true
marcoszorrilla, I am really just presenting what you said in a different way is all.
Just trying to help!
ASKER
Hi marcoszorrilla and sunset,
The checkbox is inside the DTPicker control, you can set this property at design view, how can i change this property at run time? thanks!
The checkbox is inside the DTPicker control, you can set this property at design view, how can i change this property at run time? thanks!
That's it.
Try this and the property is changed in ru time.
If DtpCAl.CheckBox = False Then
DtpCAl.CheckBox = True
Else
DtpCAl.CheckBox = False
End If
Try this and the property is changed in ru time.
If DtpCAl.CheckBox = False Then
DtpCAl.CheckBox = True
Else
DtpCAl.CheckBox = False
End If
That's it.
Try this and the property is changed in ru time.
If DtpCAl.CheckBox = False Then
DtpCAl.CheckBox = True
Else
DtpCAl.CheckBox = False
End If
Try this and the property is changed in ru time.
If DtpCAl.CheckBox = False Then
DtpCAl.CheckBox = True
Else
DtpCAl.CheckBox = False
End If
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Force accepting marcoszorrilla's answer.
costello
Community Support Moderator @ Experts-Exchange
costello
Community Support Moderator @ Experts-Exchange
You need a DtPicker control and a simple button.
this is the code for the click event.
Private Sub Comando15_Click()
If DtpCAl.Visible = False Then
DtpCAl.Visible = True
Else
DtpCAl.Visible = False
End If
End Sub