471,612 Members | 2,422 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Newby C# Web App Question - Z-INDEX Style

Hi:

I'm working on a VS2005 web application and I have what is probabably a
"newby" question.

In VS2003 I could drag a textbox/button/etc on to a form and position it
with the mouse. I converted an app to VS2005 and this still worked.

In VS2005 I can't do this. I have examined the code for VS2003 and I
see that there is a style="Z-INDEX... " in the asp code for the
objects. If I add this to VS2005 then I can position everything as I
could in VS2003. By default the code is not there and I can't find a
property to set to put it there. It only works if I enter the code
myself.

I remember some mention of this at the Microsoft Launch event - I think
that there was some page property that had to be set to make this
possible. I've looked all over (perhaps not enough) and I can't find
anything.

Does anyone now if there is a page property that can be set to make the
Z-INDEX format be the default for controls?

Your help is GREATLY appreciated!
Feb 17 '06 #1
2 4046
The Z-INDEX is not about X-Y (Horizontal-Vertical) positioning. Z-Index
identifies which item is foremost on the screen when multiple objects are
positioned at the same x-y position.

VS2003 had a property for the Document called pageLayout. If you set it to
GridLayout then the designer would, by default, set the style of all objects
put on the page to include position=absolute, and set the left and top styles
appropriately.

You can do basically the same thing in Visual Studio 2005 but you have to
enable it. You can find out how at
http://msdn2.microsoft.com/en-us/library/ms178151.aspx.

HTH
--
Dale Preston
MCAD C#
MCSE, MCDBA
"Fred Nelson" wrote:
Hi:

I'm working on a VS2005 web application and I have what is probabably a
"newby" question.

In VS2003 I could drag a textbox/button/etc on to a form and position it
with the mouse. I converted an app to VS2005 and this still worked.

In VS2005 I can't do this. I have examined the code for VS2003 and I
see that there is a style="Z-INDEX... " in the asp code for the
objects. If I add this to VS2005 then I can position everything as I
could in VS2003. By default the code is not there and I can't find a
property to set to put it there. It only works if I enter the code
myself.

I remember some mention of this at the Microsoft Launch event - I think
that there was some page property that had to be set to make this
possible. I've looked all over (perhaps not enough) and I can't find
anything.

Does anyone now if there is a page property that can be set to make the
Z-INDEX format be the default for controls?

Your help is GREATLY appreciated!

Feb 17 '06 #2
Dale:

Thank you VERY much for your help!

Fred
Dale wrote:
http://msdn2.microsoft.com/en-us/library/ms178151.aspx


Feb 18 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Damien | last post: by
reply views Thread by Pete | last post: by
reply views Thread by marco | last post: by
8 posts views Thread by Ask | last post: by
10 posts views Thread by Fred Nelson | last post: by
4 posts views Thread by Fred Nelson | last post: by
4 posts views Thread by Fred Nelson | last post: by
2 posts views Thread by johnnyG | last post: by
5 posts views Thread by alexrixhardson | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by

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.