Solved

how to obtain the date i choice when i pick a calendar

Posted on 2011-03-06
3
449 Views
Last Modified: 2012-05-11
I must put in a text field, the date that the user choices when he picks a calender in a ole object ina form. how can i do that? I saw the exemple in a visual foxpro samples, but there isn´t the code.
can i cange the picture of the calendar in the ole object?
thanks very much
0
Comment
Question by:luciliacoelho
  • 2
3 Comments
 
LVL 42

Accepted Solution

by:
pcelba earned 500 total points
ID: 35048400
This depends on the OLE control you are using on your form. Many Date entry controls exist and you have to look what properties and events they do have in design mode and test it if no documentation exists.

E.g. MS DateTime Picker 6.0 OLE control has the selected date and time in _Value property and to copy it into a text box on the same form can be done e.g. in Change event:

THIS.Parent.Text1.Value = THIS._Value
THIS.Parent.Refresh

An answer to your second question is also not possible without calendar control name.

BTW, what VFP sample are you talking about?

And the last note: Do you know VFP Calendar Window?

Try  ACTIVATE WINDOW Calendar

the selected date is stored in _diarydate variable.
0
 

Author Comment

by:luciliacoelho
ID: 35048535
thanks Pcelba, your solution solvs my problem. of the data field contents, but the image of the calendar i don´t know where i can change it
I use  DateTime Picker 6.0 OLE
thansk
0
 
LVL 42

Expert Comment

by:pcelba
ID: 35048876
Are you sure it is possible to change the calendar image? Do you have some link saying that?

You may change the output value format as described e.g. here: http://msdn.microsoft.com/en-us/library/system.windows.forms.datetimepicker.customformat.aspx
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Microsoft Visual FoxPro (short VFP) is a programming language with it’s own IDE and database, ranking somewhat between Access and VB.NET + SQL Server (Express). Product Description: http://msdn.microsoft.com/en-us/vfoxpro/default.aspx (http://msd…
Learn how to PXE Boot both BIOS & UEFI machines with DHCP Policies and Custom Vendor Classes
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 …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

829 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