How to change value of Date-Time Picker
Posted: Thu Aug 02, 2007 7:34 am
I want to change the value of Date-Time Picker in my GUI automation.Like if current date is 8/2/2007 in Date-Time Picker i want to change it 4/1/2008 .I am trying with set_text() method as given code but its not working.I am using RanorexPro1.2 Version.
Application::Start("Alarms.exe");
form = Application::FindFormTitle("Alarms manager",Ranorex::SearchMatchMode::MatchExact,true,5000);
DateTimePicker* dtpCtrl = form->FindDateTimePicker("FromDTP");
String* DateValue = "4/1/2008 ";
dtpCtrl->set_Text(DateValue);
Please guide me and provide me proper code to do the same as soon as possible.
Thanks in Advance
Application::Start("Alarms.exe");
form = Application::FindFormTitle("Alarms manager",Ranorex::SearchMatchMode::MatchExact,true,5000);
DateTimePicker* dtpCtrl = form->FindDateTimePicker("FromDTP");
String* DateValue = "4/1/2008 ";
dtpCtrl->set_Text(DateValue);
Please guide me and provide me proper code to do the same as soon as possible.
Thanks in Advance