08-15-2009 10:16 AM
Hi,
I'm trying to realize a part of my application, and I found unexpected trouble: I want the operator to be able to select from a database the data he wants to analyze. He has to select two dates, beginning and end of the period. I want to give use the .NET calendar for this, making it appear and disappear when one Key is pressed, obviously taking in memory of the date selected.
Any suggestion?
08-15-2009 02:08 PM
08-15-2009 02:13 PM
if you want it to be a key pressed you want to use a event structure also here is an example of making the .net calender disapear and reapear
08-15-2009 08:55 PM
08-16-2009 03:01 AM
Hi guys,
the "visible problem" was already solved using the event structure.
My problem is: how to save the date selected by the user inside a local variable?
I've tried with the property nodes, like in the example you mentioned, but with no result. I need to save in a variable the date selected by the user in order to use it in the rest of the program.
tks.
08-16-2009 09:44 AM
08-16-2009 12:42 PM - edited 08-16-2009 12:45 PM
Ok, I've solved my problem.
I've made tha calendars appear and disappear at the click of a button, waiting for another button to be pressed for exit the waiting loop. Thanks for your suggestion guys!
@mercurio: I know variables use should be avoided. I'm trying to use the fewest possible in my application, and if sometimes I need to (maybe due to my lack of experience) I try to check the possibility of race conditions. Thanks for the advice.