473,396 Members | 2,076 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

How to get the position of a control?

Following problem:

I have a site, that has a footer (a panel, with copyright information and so
on). Above the footer is of course the content, a other panel with text.

When the text of the content panel gets too long, it'll overlap with the
footer. How to solve that problem?

I tried to move the footer panel away, more to the bottom, if the
content-panel gets too much text.. but there isn't a member in the panel
control, with whom I can set the position.

The only thing I can think of now, is a ugly javascript hack, but of course
I want to avoid that.
Nov 19 '05 #1
5 1626
Maybe look to CSS.
http://www.alistapart.com/articles/negativemargins

Clint Hill
H3O Software
http://www.h3osoftware.com
the friendly display name wrote:
Following problem:

I have a site, that has a footer (a panel, with copyright information and so
on). Above the footer is of course the content, a other panel with text.

When the text of the content panel gets too long, it'll overlap with the
footer. How to solve that problem?

I tried to move the footer panel away, more to the bottom, if the
content-panel gets too much text.. but there isn't a member in the panel
control, with whom I can set the position.

The only thing I can think of now, is a ugly javascript hack, but of course
I want to avoid that.

Nov 19 '05 #2
Why are you hard-positoning it? Dont user GridLayout, use FlowLayout and let
it move automatically.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"the friendly display name" wrote:
Following problem:

I have a site, that has a footer (a panel, with copyright information and so
on). Above the footer is of course the content, a other panel with text.

When the text of the content panel gets too long, it'll overlap with the
footer. How to solve that problem?

I tried to move the footer panel away, more to the bottom, if the
content-panel gets too much text.. but there isn't a member in the panel
control, with whom I can set the position.

The only thing I can think of now, is a ugly javascript hack, but of course
I want to avoid that.

Nov 19 '05 #3
Well, I've set it now to FlowLayout, and I have the same problem.

Btw:

The panel with the content isn't really on the same aspx page, it's in a
usercontrol. I've tried to move the footer into the same user control, and
moved it directly under the content panel (usercontrol is on flowlayout), the
problem still exists. The content text in the content panel overlapps with
the footer panel if the text gets long enough.

"Curt_C [MVP]" wrote:
Why are you hard-positoning it? Dont user GridLayout, use FlowLayout and let
it move automatically.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"the friendly display name" wrote:
Following problem:

I have a site, that has a footer (a panel, with copyright information and so
on). Above the footer is of course the content, a other panel with text.

When the text of the content panel gets too long, it'll overlap with the
footer. How to solve that problem?

I tried to move the footer panel away, more to the bottom, if the
content-panel gets too much text.. but there isn't a member in the panel
control, with whom I can set the position.

The only thing I can think of now, is a ugly javascript hack, but of course
I want to avoid that.

Nov 19 '05 #4
You're saying that your text areas are overlapping? This isnt' really
possible unless you use one of them in an Absolute/XY-coordinate scenario.....
Get rid of these hard positionings.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"the friendly display name" wrote:
Well, I've set it now to FlowLayout, and I have the same problem.

Btw:

The panel with the content isn't really on the same aspx page, it's in a
usercontrol. I've tried to move the footer into the same user control, and
moved it directly under the content panel (usercontrol is on flowlayout), the
problem still exists. The content text in the content panel overlapps with
the footer panel if the text gets long enough.

"Curt_C [MVP]" wrote:
Why are you hard-positoning it? Dont user GridLayout, use FlowLayout and let
it move automatically.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"the friendly display name" wrote:
Following problem:

I have a site, that has a footer (a panel, with copyright information and so
on). Above the footer is of course the content, a other panel with text.

When the text of the content panel gets too long, it'll overlap with the
footer. How to solve that problem?

I tried to move the footer panel away, more to the bottom, if the
content-panel gets too much text.. but there isn't a member in the panel
control, with whom I can set the position.

The only thing I can think of now, is a ugly javascript hack, but of course
I want to avoid that.

Nov 19 '05 #5
changing to flow layout dooes not remove the positioning attributes that VS
has already placed on objects. remove them then use a table. you will
probably need nested tables to get your layout.

<table width=100% height=100%>
<tr><td>
<-- header goes here -->
</td></tr>

<tr><td>
<-- page content goes here -->
</td></tr>

<tr><td>
<-- footer goes here -->
</td></tr>
</table>

-- bruce (sqlwork.com)

"the friendly display name"
<th********************@discussions.microsoft.co m> wrote in message
news:CB**********************************@microsof t.com...
Well, I've set it now to FlowLayout, and I have the same problem.

Btw:

The panel with the content isn't really on the same aspx page, it's in a
usercontrol. I've tried to move the footer into the same user control, and
moved it directly under the content panel (usercontrol is on flowlayout),
the
problem still exists. The content text in the content panel overlapps with
the footer panel if the text gets long enough.

"Curt_C [MVP]" wrote:
Why are you hard-positoning it? Dont user GridLayout, use FlowLayout and
let
it move automatically.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"the friendly display name" wrote:
> Following problem:
>
> I have a site, that has a footer (a panel, with copyright information
> and so
> on). Above the footer is of course the content, a other panel with
> text.
>
> When the text of the content panel gets too long, it'll overlap with
> the
> footer. How to solve that problem?
>
> I tried to move the footer panel away, more to the bottom, if the
> content-panel gets too much text.. but there isn't a member in the
> panel
> control, with whom I can set the position.
>
> The only thing I can think of now, is a ugly javascript hack, but of
> course
> I want to avoid that.

Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Zenobia | last post by:
Hello folks, Is it possible to position an item within a <td> element? For instance see below. The table has multiple rows, one for each database record. Each row has 3 hrefs associated with it...
3
by: moondaddy | last post by:
I'm trying to create my first user control and its function is to replace the use of a frames page. I want to position it under the pages header menus and to the right of the pages contents menus....
1
by: Leo | last post by:
I created a user control which is some text contained in a HtmlTable. I put this control into main form. I would like to have the ability to move this control around in the main form. I think one...
1
by: Rob R. Ainscough | last post by:
I'm at a new level of frustration just trying to get my controls to line up and stay in place. I'm using a MultiView containing 4 views - some views have Panels. I can't use absolution position...
1
by: Roger | last post by:
While there are several web sites that make use of sidebars, there are relatively few that make use of fixed position sidebars. While fixed position sidebars offer the advantage of having the page...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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...
0
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...
0
tracyyun
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.