Hi
Sorry, but in fact I forgot to mension something that I had realized before.
The Z-Index only makes diference when You are using absolute positioning on your HTML. Absolute positioning means that You are defining the exact position of your control on the page and the control position will not be related to any other element of the page.
Just for a test in a new page, try to add this HTML code
<asp:TextBox id="TextBox1" style="Z-INDEX: 102; LEFT: 144px; POSITION: absolute; TOP: 104px"
runat="server"></asp:TextBox>
<asp:TextBox id="TextBox2" style="Z-INDEX: 101; LEFT: 184px; POSITION: absolute; TOP: 112px"
runat="server"></asp:TextBox>
Look at the visual result. The upper text box is over the other one.
Now change the values of the Z-Index to be like this :
<asp:TextBox id="TextBox1" style="Z-INDEX: 100; LEFT: 144px; POSITION: absolute; TOP: 104px"
runat="server"></asp:TextBox>
<asp:TextBox id="TextBox2" style="Z-INDEX: 101; LEFT: 184px; POSITION: absolute; TOP: 112px"
runat="server"></asp:TextBox>
Look again. The upper text box is now under, right?
Gook look
Luiz
..
<an*******@discussions.microsoft.com> escreveu na mensagem news:0f****************************@phx.gbl...
Hi Luiz,
I still couldn't let the Calendar control on the top of
the dropdownbox and listbox by trying z-index. It seems
that style z-index doesn't work with dropdown box and
listbox. Any ideas?
Thanks!-----Original Message-----
Hi,
Z-Index must be set trought the style of Your control. It
will be found looking at the HTML code of Your ASPX page.
For example :
<asp:textbox id="FirstName" style="Z-INDEX: 104"
runat="server" Height="20px" Width="168px"></asp:textbox>
Control with Greater Z-Index goes to front and smaller Z-
Index goes behind. So with this You can arrange the
presentation in any form You like.
I hope this could help You
Luiz
Brazil
"tom" <an*******@discussions.microsoft.com> escreveu na
mensagem news:04****************************@phx.gbl... Hi Venugopal,
Thank you very much for your response.
Could you please explain to me how to set the Z-Index of the control?
Thanks,
>-----Original Message-----
>You can set the Z-Index of the control...to bring it to >the front...
>>-----Original Message-----
>>Hi,
>>
>>I want a listbox below a hidden calendar control. The
>>problem is that the listbox will shadow the calendar
>when
>>the calendar is visible. How can I bring the calendar
>from
>>back to front?
>>
>>Thanks in advance.
>>
>>.
>>
>.
>