Hello,
I am trying to reposition a calendar control at runtime i.e next to the
approriate button which was clicked.
Without the code below, the control appears in the same position but on top
of all other controls.
With the code, the calendar control is repositioned but it then appears
underneath all other controls.
calStartDate.At tributes["style"] = "position: absolute; top:400; left:
600;";
Adding 'z-index: 99;' to the above statement doesn't seem to have any
effect.
Thanks
Lee 3 2217
Create new DIV and put you control withing it
It that case using DIV won't change you control layout when you set visible
for the control
"Lee" wrote: Hello,
I am trying to reposition a calendar control at runtime i.e next to the approriate button which was clicked.
Without the code below, the control appears in the same position but on top of all other controls. With the code, the calendar control is repositioned but it then appears underneath all other controls.
calStartDate.At tributes["style"] = "position: absolute; top:400; left: 600;";
Adding 'z-index: 99;' to the above statement doesn't seem to have any effect.
Thanks Lee
--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Hi,
This may be cause you have some non-window controls around, I know that
there are some cirscunstances where you get this problem. Do a google search
about that.
Also a word of advise, positioning the control to the precise coordinates
the way you are doing it can get you in trouble down the line, if the
browser window is resized you may not want the control at those exact
coordinates.
You better calculate the correct coordinates at runtime
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Lee" <le*********@ba esystems.com> wrote in message
news:44******** **@glkas0286.gr eenlnk.net... Hello,
I am trying to reposition a calendar control at runtime i.e next to the approriate button which was clicked.
Without the code below, the control appears in the same position but on top of all other controls. With the code, the calendar control is repositioned but it then appears underneath all other controls.
calStartDate.At tributes["style"] = "position: absolute; top:400; left: 600;";
Adding 'z-index: 99;' to the above statement doesn't seem to have any effect.
Thanks Lee
I tried the adding the div around the calendar, within the form, but it had
no effect. I tried it outside the form and not surprising got a runtime
error. Did I interpret your comment correctly?? See below:
<form id="Form1" method="post" runat="server">
<div>
<asp:calendar id="calStartDat e" style="Z-INDEX: 160; LEFT: 624px;
POSITION: absolute; TOP: 256px" runat="server" Width="224px" Height="168px"
Visible="False" >
<SelectorStyl e BackColor="Whit e"></SelectorStyle>
</asp:calendar>
</div>
Remainder of the form controls.....
"Michael Nemtsev" <ne*****@msn.co m> wrote in message
news:3B******** *************** ***********@mic rosoft.com... Create new DIV and put you control withing it It that case using DIV won't change you control layout when you set visible for the control
"Lee" wrote:
Hello,
I am trying to reposition a calendar control at runtime i.e next to the approriate button which was clicked.
Without the code below, the control appears in the same position but on top of all other controls. With the code, the calendar control is repositioned but it then appears underneath all other controls.
calStartDate.At tributes["style"] = "position: absolute; top:400; left: 600;";
Adding 'z-index: 99;' to the above statement doesn't seem to have any effect.
Thanks Lee
-- WBR, Michael Nemtsev :: blog: http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents do not cease to be insipid." (c) Friedrich Nietzsche This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: R6_2003 |
last post by:
Hello all,
i dunno if that's the right newsgroup to ask, but i'll try, please
ignore me if u feel its not 0:)
i've been messing with a control panel app for so long.. previously i
was using Microsoft Visual C++ 6 and had ZERO problems, but now at
work we switched to Borland C++ 6.0.
The control panel applet i did contains a simple form with a
|
by: Buddy |
last post by:
Hello,
Can someone point me to some example code that shows how
to paint the text in a button control. I basically want to
reposition the text so it does not wrap.
|
by: Z D |
last post by:
Hello,
I've created a winform user control that, at some point in the default
constructor, looks for a specifc file.
When I try to load the user control to my winform's form during design time
it gives an error saying that the file doesn't exist.
Obviously the file doesnt exist yet because its only created at runtime!!
|
by: Owen Jenkins |
last post by:
I have an Access application that is being used by 150+ clients. I
develop in 97, convert to 2000 and distribute as a 97 or 2000 mde, or 97
runtime. This limits me to 97 functions. My clients may use any one of
Access 97, 2000, 2002, 2003 or 97 runtime.
So that I'm not lingering too far behind, I'm thinking of developing in
2003, using 2000 file format and distributing a 2000 mde for users of
Access 2000+. (I understand I'll need to use...
|
by: Mike |
last post by:
Hi,
Is it possible to have a control on a form set to visible=false at the beginning and then move it to a specific location when required? If so, any resources (articles, samples) that I could look at?
Thanks.
Mike
| |
by: Guadala Harry |
last post by:
In an ASCX, I have a Literal control into which I inject a
at runtime.
litInjectedContent.Text = dataClass.GetHTMLSnippetFromDB(someID);
This works great as long as the contains just client-side
HTML, CSS, etc.
What I want to do is somehow insert a *server control* into the , then set the server control's properties at runtime.
|
by: Smithers |
last post by:
I have a non trivial ASP.NET Web application that implements its navigation
system via a user control (menu.ascx) placed on every page.
It is important to note that the user control that hosts the menu is
injected into every page at runtime when the page is requested (i.e., it's
not declared in any ASPX).
The user control contains a menu that is dynamically populated and styled at
runtime (fwiw: it's ComponentArt's Menu for ASP.NET -...
|
by: VJ |
last post by:
I am using the web browser control.., I would like to add the control at
runtime...
I was adding the web browser control at desgin time. Now I decided to add
the control at run time so I removed the control from the form and also the
refrences to AxSHDocVw and SHDocVw, then I added the following statments
Dim axwbOfficeDocEditor As New AxSHDocVw.AxWebBrowser
Me.Controls.Add(axwbOfficeDocEditor)
axwbOfficeDocEditor.Dock = DockStyle.Fill
|
by: SMcK |
last post by:
I have a PDA-based (Syware Visual CE) database which I need to sync to
an Access database. The Access database contains three tables: 1 is
the data itself, 2 is a linked table that prefills several fields in
the main data table based on the value of one of it's fields, and 3 is
table the PDA database creates to sync cases. I've been using Access
2003 until now. I need to be able to distribute the Access database
and PDA database to...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |