Solved

Set DTPicker's Checkbox at run time?

Posted on 2001-07-04
8
418 Views
Last Modified: 2012-08-13
Hi,

How to set the DTPicker's checkbox to visible and vice versa in runtime? Thanks.
0
Comment
Question by:Trowa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 3

Expert Comment

by:marcoszorrilla
ID: 6252983
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
0
 

Author Comment

by:Trowa
ID: 6254084
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.
0
 
LVL 1

Expert Comment

by:sunset
ID: 6254605
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!
0
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 

Author Comment

by:Trowa
ID: 6254616
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!
0
 
LVL 3

Expert Comment

by:marcoszorrilla
ID: 6255935
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
0
 
LVL 3

Expert Comment

by:marcoszorrilla
ID: 6255939
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
0
 
LVL 3

Accepted Solution

by:
marcoszorrilla earned 20 total points
ID: 6282594
I post that as a comment but is the solution. And I waiting
for your points.....??

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
0
 

Expert Comment

by:costello
ID: 6403568
Force accepting marcoszorrilla's answer.

costello
Community Support Moderator @ Experts-Exchange
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question