Link to home
Start Free TrialLog in
Avatar of Trowa
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.
Avatar of marcoszorrilla
marcoszorrilla

Try this example:
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
Avatar of Trowa

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!
Avatar of Trowa

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!
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
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
ASKER CERTIFIED SOLUTION
Avatar of marcoszorrilla
marcoszorrilla

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Force accepting marcoszorrilla's answer.

costello
Community Support Moderator @ Experts-Exchange