?
Solved

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

Posted on 2011-03-06
3
Medium Priority
?
485 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
[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
  • 2
3 Comments
 
LVL 43

Accepted Solution

by:
pcelba earned 2000 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 43

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

Technology Partners: 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

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…
Want to know how to use Exchange Server Eseutil command? Go through this article as it gives you the know-how.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

719 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