470,590 Members | 2,271 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,590 developers. It's quick & easy.

How to make a Calendar-like User Control NOT transparent

Nad
Hello,

I have a user control that has a button and a Calendar. Once you click on
the button I display the calendar.

Now when I move this user control to a web form, once I click on this button
the Calendar displays but it's transparent so other controls like labels on
the web form which are supposed to be behind the Calendar can be seen. How do
I make sure the Calendar is not transparent?

Thank you.
Nov 19 '05 #1
4 3561
Why don't you try setting the background color on the calendar. You could
also add the calendar to a "div" section and set the background for the "div".

"Nad" wrote:
Hello,

I have a user control that has a button and a Calendar. Once you click on
the button I display the calendar.

Now when I move this user control to a web form, once I click on this button
the Calendar displays but it's transparent so other controls like labels on
the web form which are supposed to be behind the Calendar can be seen. How do
I make sure the Calendar is not transparent?

Thank you.

Nov 19 '05 #2
Nad
I should've been more clear. This is not about background color.

The thing is that ONLY those days of the Calendar control can be clicked
that are not mixed with other controls in the background web form. So if a
label is overlapped by a few days of the Calendar control, for those days the
click event does not work.

"Visar Gashi, MCP" wrote:
Why don't you try setting the background color on the calendar. You could
also add the calendar to a "div" section and set the background for the "div".

"Nad" wrote:
Hello,

I have a user control that has a button and a Calendar. Once you click on
the button I display the calendar.

Now when I move this user control to a web form, once I click on this button
the Calendar displays but it's transparent so other controls like labels on
the web form which are supposed to be behind the Calendar can be seen. How do
I make sure the Calendar is not transparent?

Thank you.

Nov 19 '05 #3
This sounds like a possible z-index issue. An element with greater
z-index is always in front of another element with lower z-index.
Perhaps you could post the HTML/CSS you are using so we can take a
look.

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Tue, 7 Jun 2005 14:26:03 -0700, Nad <Na*@discussions.microsoft.com>
wrote:
I should've been more clear. This is not about background color.

The thing is that ONLY those days of the Calendar control can be clicked
that are not mixed with other controls in the background web form. So if a
label is overlapped by a few days of the Calendar control, for those days the
click event does not work.

"Visar Gashi, MCP" wrote:
Why don't you try setting the background color on the calendar. You could
also add the calendar to a "div" section and set the background for the "div".

"Nad" wrote:
> Hello,
>
> I have a user control that has a button and a Calendar. Once you click on
> the button I display the calendar.
>
> Now when I move this user control to a web form, once I click on this button
> the Calendar displays but it's transparent so other controls like labels on
> the web form which are supposed to be behind the Calendar can be seen. How do
> I make sure the Calendar is not transparent?
>
> Thank you.


Nov 19 '05 #4
Nad
Thank you it was z-index.

"Scott Allen" wrote:
This sounds like a possible z-index issue. An element with greater
z-index is always in front of another element with lower z-index.
Perhaps you could post the HTML/CSS you are using so we can take a
look.

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Tue, 7 Jun 2005 14:26:03 -0700, Nad <Na*@discussions.microsoft.com>
wrote:
I should've been more clear. This is not about background color.

The thing is that ONLY those days of the Calendar control can be clicked
that are not mixed with other controls in the background web form. So if a
label is overlapped by a few days of the Calendar control, for those days the
click event does not work.

"Visar Gashi, MCP" wrote:
Why don't you try setting the background color on the calendar. You could
also add the calendar to a "div" section and set the background for the "div".

"Nad" wrote:

> Hello,
>
> I have a user control that has a button and a Calendar. Once you click on
> the button I display the calendar.
>
> Now when I move this user control to a web form, once I click on this button
> the Calendar displays but it's transparent so other controls like labels on
> the web form which are supposed to be behind the Calendar can be seen. How do
> I make sure the Calendar is not transparent?
>
> Thank you.


Nov 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Sugapablo | last post: by
2 posts views Thread by cg_news | last post: by
4 posts views Thread by Mark A. Washburn | last post: by
1 post views Thread by Jack Crane | last post: by
reply views Thread by Charles Blaquière | last post: by
reply views Thread by R.A.M. | last post: by
1 post views Thread by R.A.M. | last post: by
reply views Thread by GV | last post: by
7 posts views Thread by William (Tamarside) | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.