Solved

Set DTPicker's Checkbox at run time?

Posted on 2001-07-04
8
411 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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
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…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

808 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