473,386 Members | 1,609 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,386 software developers and data experts.

Repositioning Panels at Runtime

In my Webform I am building in VS.NET, I need to position and reposition a
number of panels at runtime from within my Code Behind. Can someone tell me
what namespaces I need to import, what the code is, and where, exactly I put
that code.

In addtion to the...

<%@ Page Language="vb" (etc, etc.) %>

....at the very top of my HTML source, I also have...

<%@ Import Namespace="System.Drawing" %>

I thought that was all I needed to use...

Panel1.Location = New Point(x,x)

....in my Code Behind, but it doesn't allow it. I get those little squiggle
lines underneath it.

What am I doing wrong?

Thanks,
George
Nov 20 '05 #1
3 1797
Cor
Hi George,

As far as I know, you cannot.

To position it you can put a Panel on your screen and inside that panel you
can position by using the Me.Panel1.Controls.Add(New LiteralControl("<BR>"))
and things like that.

The panel.location is from a windowsform not from a webform, do not mix the
controls from a webform with the same name up with a windowforms.

The only one which is really a little bit look alike is the label (but with
exception the location and the height and width by instance)

Although I know not a real nice answer do I hope this helps?

Cor
In my Webform I am building in VS.NET, I need to position and reposition a
number of panels at runtime from within my Code Behind. Can someone tell me what namespaces I need to import, what the code is, and where, exactly I put that code.

Nov 20 '05 #2
Hey Cor,

That's probably why I couldn't get it to work! ;-) I didn't know that
panel.location was for Windows Forms only.

I need to allow a visitor to my Web site to turn the panel.visible on and
off for about six different areas on a page, all six areas are stacked
vertically on the page.

When I use panels to do this, I end up with different size gaps between
them, depending on which ones are visible. It doesn't look very good like
that, and need some way to control panel locations from a relative or
absolute reference point -- or some other way of doing it.

Thanks for your help.
George
"Cor" <no*@non.com> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
Hi George,

As far as I know, you cannot.

To position it you can put a Panel on your screen and inside that panel you can position by using the Me.Panel1.Controls.Add(New LiteralControl("<BR>")) and things like that.

The panel.location is from a windowsform not from a webform, do not mix the controls from a webform with the same name up with a windowforms.

The only one which is really a little bit look alike is the label (but with exception the location and the height and width by instance)

Although I know not a real nice answer do I hope this helps?

Cor
In my Webform I am building in VS.NET, I need to position and reposition a number of panels at runtime from within my Code Behind. Can someone tell

me
what namespaces I need to import, what the code is, and where, exactly I

put
that code.




Nov 20 '05 #3
Cor
Hi George,

I did not use it, but there is a panel.horizontalalign if you place one
master panel with and place the others on that, tell that master that the
horizontalaling is horizontalalign.center and make the childs time by time
visible, than I expect it will have a greath look.

I am not compluete because as I told I never used it, however I expect it.

I hope this helps?

Cor
Nov 20 '05 #4

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

Similar topics

0
by: PZ | last post by:
OSS 2005 The First International Conference on Open Source Systems Genova, July 11 - 15, 2005 CALL FOR PANELS http://oss2005.case.unibz.it Submissions of panels are solicited for the "First...
6
by: Kor | last post by:
Hi, Does anybody understand why the technique described in http://www.macromedia.com/devnet/server_archive/articles/css_positioning_dynamic_repositioning.html doesnt work in Netscape 6/7 and...
1
by: pfnus | last post by:
Hi, I want to display different forms when the buttons are clicked and all the forms are having different controls on it. So instead of adding new windows forms to the project, i enlarged the...
1
by: Demetri | last post by:
I'm trying to determine if we want to use panels or user controls for our pages. Our primary concern is performance, page loading and posting speed. To illustrate my question, lets use the...
1
by: Anoop | last post by:
Hi, Requirement: Create Edit Forms dynamically i.e. at runtime in C#.net. The child contol(s) information e.g. no.of control, their type(lable/textbox), enabled/disabled etc. is coming from the...
1
by: Ben | last post by:
Hi We have a number of Panels on our windows form, we have controls inside and outside of the panels. I am having problems tabbing between controls, it appers to be when the controls are...
1
by: Peter Kulek | last post by:
I am trying to use the TableLayoutPanel with say four panels then at runtime I want to be able to resize then as done at design time but I cannot find anu way of doing this. Any Ideas would be...
5
eboyjr14
by: eboyjr14 | last post by:
I have Dreamweaver CS3 and I'm trying out the new Spry stuff like the tabbed panels ( and I like it =P ). I am using the tabbed panels and need to know how to dynamically create a new tab with...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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...

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.