By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,010 Members | 2,774 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,010 IT Pros & Developers. It's quick & easy.

How to make a Calendar-like User Control NOT transparent

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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.