473,657 Members | 2,735 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Moving Controls @ Runtime

Hello,
basically I want to be able to determine the height of a panel at runtime on
a webform. The only value I can squeeze out of the control properties is the
height that is set at design time. I know the height differs because
controls within the panel are dynamic thus affecting the visible height of
it.

Thanks

Nov 22 '05 #1
3 1444
Hello Barrett,
Have you tried panel.width?

Hello,
basically I want to be able to determine the height of a panel at
runtime on
a webform. The only value I can squeeze out of the control properties
is the
height that is set at design time. I know the height differs because
controls within the panel are dynamic thus affecting the visible
height of
it.
Thanks


Nov 22 '05 #2
That property is not likely to give me the height!?!?!

"Antonio" wrote:
Hello Barrett,
Have you tried panel.width?

Hello,
basically I want to be able to determine the height of a panel at
runtime on
a webform. The only value I can squeeze out of the control properties
is the
height that is set at design time. I know the height differs because
controls within the panel are dynamic thus affecting the visible
height of
it.
Thanks


Nov 22 '05 #3
Barrett,

This is a question meant as answer, what can be the height at runtime. Did
you create something dynamicly using JavaScript, are you aware of user
settings on the client while you made your panel with a non fixed width etc.

How can you can than know, what the user does on the client, on on the
serverside in another way than adding JavaScript for the client and get that
by instance in the server using a hidden servercontrol.

However I have not a direct answer for you, there are to much variables what
you can use or want and have solved. I once did a kind same problem a longer
time ago, but do not know exactly anymore how and where I have it.

Although you can ask this question of course as well again in the newsgroup
microsoft.publi c.dotnet.framew ork.aspnet

I hope this helps anyway something?

Cor

"Barrett"
That property is not likely to give me the height!?!?!

"Antonio" wrote:
Hello Barrett,
Have you tried panel.width?

> Hello,
> basically I want to be able to determine the height of a panel at
> runtime on
> a webform. The only value I can squeeze out of the control properties
> is the
> height that is set at design time. I know the height differs because
> controls within the panel are dynamic thus affecting the visible
> height of
> it.
> Thanks
>


Nov 22 '05 #4

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

Similar topics

3
372
by: Barrett | last post by:
Hello, basically I want to be able to determine the height of a panel at runtime on a webform. The only value I can squeeze out of the control properties is the height that is set at design time. I know the height differs because controls within the panel are dynamic thus affecting the visible height of it. Thanks
2
2659
by: jbmeeh | last post by:
I have an application in which I need to expose runtime moving and resizing of controls. Most of the functionality that I need is exposed by the CRectTracker class in the C++ library. Are there any code samples or tutorials for calling a managed C++ from C#? Any help would be appreciated.
1
3081
by: rp | last post by:
Hi, How would I create runtime tabpages with runtime controls(textBoxes,comboBox, checkedListBox), inserting,deleting, and modifing the tabpages whenever I want to in C#? Thanks in advance. rp
4
1559
by: xs | last post by:
I have a datagrid and a button. The contents of datagrid is dynamic. My button is placed below the datagrid. If there are too many items in Datagrid the button and datagrid will be overlapped. Is there any way to move the button at runtime?
4
6724
by: Chuck Ritzke | last post by:
Hi, I've searched the newsgroup and other sources to understand how to handle runtime controls and see I'm not the only one who's confused, but I'm still not quite sure of the best way to handle from all the various explanations/answers. I'm attempting the typical scenario... I create a variable number of controls at runtime based on parameters from a database.
7
1607
by: jcrouse | last post by:
I use the following three subs to click on a label and reposition it at runtime: Private Sub lblP1JoyUp_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles lblP1JoyUp.MouseDown myMouseDown = True mouseX = Cursor.Position.X - Me.Location.X - (lblP1JoyUp.Width / 2)
3
4453
by: eswanson | last post by:
I have a site that has multiple web site projects. I got it working on my windows xp sp2 computer in pre-compiled mode. I created a new site on a windows 2003 server and copied the pre-compiled site up to this server. Now I am getting the following error: Server Error in '/' Application. --------------------------------------------------------------------------------
0
1702
by: Derek Hart | last post by:
I am wanting to move and/or resize controls at runtime. I have download and integrated this application: http://www.codeproject.com/KB/miscctrl/CSharpRectTracker.aspx It is the C# Rect Tracker, and works great. However, I still need to seek the ability to do a few more things. If anybody has enhanced C# Rect Tracker, and/or knows of other code, including commercial product to do the following, I would appreciate it.
3
4545
by: SonOf27 | last post by:
Morning all. I was hoping somone would be able to help me with some VBA program that will allow me to move the whole Tab Control on an Access form at runtime. What I have is a form in Access 2000 that has 2 tab controls side by side, with multiple pages on each control, that looks fine on a 22inch monitor at its heigest screen resolution. Unfortunately not eveyone using this db will have a screen this size or be running at the max resolution....
5
2698
by: adarshyam | last post by:
Hi friends, I have an interesting problem in vb.net. And I am struggling to get a solution for this..m trying for the past 3days.. It’s to calculate moving average for the inputs given by the user.. The following are the steps.. 1, get 2user inputs in textbox(1st input is number is periods, 2nd is moving range) 2, after getting both the user inputs, the user will click on an input button which must dynamically generate rows for the number...
0
8319
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,...
0
8837
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, 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...
0
8739
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 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...
1
6175
isladogs
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...
0
4171
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...
0
4329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2739
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1969
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1732
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.