Zorder bug????

  • Thread starter Thread starter Hefty
  • Start date Start date
H

Hefty

Hi folks,

I've created a custom control which consists of a textbox,calendar
control and button. User clicks button and chooses date from calendar
which in turn populates the textbox. Nothing to taxing there!

However, the problem I have is the calendar ctl is always rendered
behind existing controls on a form. Which is pretty pointless really.
I have set the ZOrder properties accordingly to no aviail.

I have been told this is a bug. Has anyone managed a workaround.


Thanks
 
Hi,

Is the calendar always rendered behind all the controls or just the drop
down lists? Drop down lists are actually windows themselves and need to be
hidden, they will always show throw anything put over them. If it isn't
just drop down lists showing through then there is probably a problem with
the calendar control you are using (either it's javascript or stylesheet).
Good luck! Ken.
 
Ken,

Thanks for reply. Your were of course correct. I managed to solve the
problem by adding to events to my control. I then used the events in my
form to toggle the visible property of the dropdowns.

Regards


Lee
 
Back
Top