Zorder bug????

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
 
K

Ken Dopierala Jr.

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.
 
L

Lee Westcott

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,241
Latest member
Lisa1997

Latest Threads

Top