Solved

Set DTPicker's Checkbox at run time?

Posted on 2001-07-04
8
401 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
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
 

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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

762 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now