Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2011-03-06
3
Medium Priority
?
491 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 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Steps to fix error: “Couldn’t mount the database that you specified. Specified database: HU-DB; Error code: An Active Manager operation fail”
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Screencast - Getting to Know the Pipeline

886 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