473,499 Members | 1,562 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3727
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2078
by: Sugapablo | last post by:
Can someone recommend a very simple script to produce a web calendar? I just want something where I can select a month and year and it produces a very basic HTML table, 7 columns across, one...
2
14860
by: cg_news | last post by:
In short, what I am trying to do is, based on a date, calculate the week of year (as described in ISO 8601), then calculate the first and last date in this week period and return them in the format...
4
2546
by: Mark A. Washburn | last post by:
The Julian Calendar, adopted in 46BC by Julius Caesar, adds one day every four years to correct for the fact that Earth's solar year is slightly more than 365 of Earth's daily rotations. ( 365.25...
1
2338
by: Jack Crane | last post by:
Here's my calendar_for_specified_year.py. ============================================== # calendar_for_specified_year.py # print any year's calendar from 1753 A.D. through at least 3999 A.D. ...
0
5019
by: Charles Blaquière | last post by:
While noodling around, looking for a good layout for an "events calendar" page, I came upon a problem that has me stymied. Have a look at http://kpuc.org/events/upcoming-2.html . The basic...
5
4304
by: Charles | last post by:
Hello, I would like for my users to have a calendar control only when needed. IE button click for the control to appear and then once the date is selected. Populate a text box and the calendar...
0
1684
by: R.A.M. | last post by:
Hello, I need to implement popup calendar in ASP.NET application. I created a button opening popup calendar on 'master' page: <asp:Button ID="Calendar" runat="server" Text=Calendar"...
1
2721
by: R.A.M. | last post by:
Hello, I need to implement popup calendar in ASP.NET application. I created a button opening popup calendar on 'master' page: <asp:Button ID="Calendar" runat="server" Text=Calendar"...
0
1987
by: GV | last post by:
Hi all, New to developing in VS 2005 ASP 2.0 Trying to have a easy pop calender for a button on a web page. I keep getting a error message in IE6 that says: Line 69 Char 3 Error:...
7
2279
by: William (Tamarside) | last post by:
Please, if you have the time and knowledge to help me I'd truly appreciate it! I need to build a calendar page that displays available/unavailable info from a DB and colour a cell according to...
0
7130
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
7171
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
7220
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...
1
6893
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4918
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4599
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3090
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
664
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
295
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.