Murray Brown
asked on
VB.net Use code to open two DateTimePickers at the same time
Hi
I am using the following code to try to open two DateTimePicker control calendars but as expected
the first one closes when the second one is opened. Is there a way to open both calendars on both controls
at the sametime
I am using the following code to try to open two DateTimePicker control calendars but as expected
the first one closes when the second one is opened. Is there a way to open both calendars on both controls
at the sametime
Me.DateTimePicker1.Select()
SendKeys.Send("%{DOWN}")
Me.DateTimePicker2.Select()
SendKeys.Send("%{DOWN}")[code]
[/code]
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
@Fernando
re. there can only be one control active an any one time...
Correct BUT just because a control loses focus doesn't automatically hide that control (in this case a popup window). One can have multiple popup windows open simultaneously if they are so programmed. Some controls, such as the calendar part of the date time picker, are coded to be disposed of when another control is selected.
re. there can only be one control active an any one time...
Correct BUT just because a control loses focus doesn't automatically hide that control (in this case a popup window). One can have multiple popup windows open simultaneously if they are so programmed. Some controls, such as the calendar part of the date time picker, are coded to be disposed of when another control is selected.
@Andy
That is correct but in some cases such as the standard DateTimePicker once the control loses focus it automatically returns to it default view unless one has extended the controls functionality.
That is correct but in some cases such as the standard DateTimePicker once the control loses focus it automatically returns to it default view unless one has extended the controls functionality.
ASKER
Thanks
ASKER