472,984 Members | 2,285 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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 3695
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
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
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
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
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
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
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
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
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
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
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
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.