473,387 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to bring Canlendar control from back to front?

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

Nov 17 '05 #1
7 11073
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 whenthe calendar is visible. How can I bring the calendar fromback to front?

Thanks in advance.

.

Nov 17 '05 #2
tom
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.

.

.

Nov 17 '05 #3
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.

.

.

Nov 17 '05 #4
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.
>>
>>.
>>
>.
>

Nov 17 '05 #5
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.
>>
>>.
>>
>.
>

Nov 17 '05 #6
tom
Luiz,

But it doesn't work if try one textbox with one
dropdownbox or listbox.

Thanks,
-----Original Message-----
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.
>> >>
>> >>.
>> >>
>> >.
>> >

Nov 17 '05 #7
Sorry but with dropdowns it really sucks....

Look at this link
http://msdn.microsoft.com/msdnmag/is...b/default.aspx

You will see this Q&A

Q My Web site uses dropdown menus. When a menu drops down over a SELECT listbox, the listbox always seems to move to the top of the z-order. I've tried the z-index style, but it does not work. The simple sample I created proves this point (see Figure 3). Am I dealing with a bug, or some other unusual problem that has a kludgy workaround? Nothing I've tried seems to work.

A This is a common issue with dropdown menus and other forms of layer positioning. An important thing to understand about implementing dropdown menus on a Web page is that there are several types of objects you can put in a page that will clip the menu when it is displayed. The select/listbox form items as well as <iframe> elements will be drawn on top of a dropdown menu, which is displayed using absolute positioning with a <div> element. It is not a bug in the browser that causes this; it's more of a complex interaction of parent/child windows and clipping regions. The best workaround is to design your pages so that all dropdown menus are far enough away from other boxes, frames, and so on, to prevent this clipping behavior. Another method I've seen is to hide the listboxes or other items when a dropdown is activated.
When you go to the MSDN® Library (http://msdn.microsoft.com/library), the menu bar is displayed, but not the dropdown menus themselves because they would have gotten clipped by the frames that are displaying the tree structure and document contents.
Like it or not, HTML and scripting is no substitute for full-featured application programming. While it may seem to you that with each version of the browser more and more complex capabilities are exposed, it will probably be a while before everything you can do in Visual Basic® or C++ can be accomplished with HTML and scripting.

"tom" <an*******@discussions.microsoft.com> escreveu na mensagem news:00****************************@phx.gbl...
Luiz,

But it doesn't work if try one textbox with one
dropdownbox or listbox.

Thanks,
-----Original Message-----
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.
>> >>
>> >>.
>> >>
>> >.
>> >

Nov 17 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Tyson | last post by:
I have got this little piece of code that fires on exit of a text box. It run's my query perfectly based of my form input. But I don't know how to bring result in my query back to a text box on my...
0
by: ACaunter | last post by:
HI there.. I have a dropdown menu for my asp.net website (not a combo box with the down arrow).. its for Home, Compant, ... , Contact Us... and then when the mouse goes over it, the sub menus are...
9
by: DraguVaso | last post by:
Hi, I want my application to bring another application to the Front. I thought best way to do this was by the Process-model: Dim c As Process = Process.GetCurrentProcess() Dim p As Process...
2
by: JohnR | last post by:
Let's say I have an MDI parent form with a textbox. If I create an MDI child form and, at runtime, move the MDI child window over the textbox on the MDI parent, the textbox appears in front of the...
2
by: muymalestado | last post by:
In A2000 is it certain that one cannot perfoem 'Bring to front' using code. Is is also the case that 'Visible = True or =False' is different and separate from a control's zorder and thus that if...
5
by: Iain Bishop | last post by:
I have a simple form with 4 command buttons and 1 label. The label is sometimes visible and sometimes not. When it is visible I want it to be in front of the buttons. I've tried bringing the label...
11
by: Max Vit | last post by:
I have deployed few Access apps splitting it in Front End and Back End. Our environment uses Win XP SP2 for clients, Win 2k3 for servers and Access 2003. The max. number of clients is about 50...
11
by: gan | last post by:
hi dear all please help me im using the calander control from a form just i paste here the problem, the problem is when i click the calander button the calander is opening at the same time...
1
by: swethak | last post by:
Hi, How to do the bring front and bring back an images using javascript.
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.