Solved

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

Posted on 2011-03-06
3
413 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 41

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 41

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

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…
Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

758 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

22 Experts available now in Live!

Get 1:1 Help Now