473,406 Members | 2,710 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,406 software developers and data experts.

Height of a control

How do I set the height of a control from another control like

Me.Panel1.Height=300

Rehiaa
Nov 21 '05 #1
3 1149
Me.Panel1.Height = Me.Panel2.Height
"reidarT" <re****@eivon.no> schreef in bericht
news:Oo**************@TK2MSFTNGP10.phx.gbl...
How do I set the height of a control from another control like

Me.Panel1.Height=300

Rehiaa

Nov 21 '05 #2
"reidarT" <re****@eivon.no> schrieb:
How do I set the height of a control from another control like

Me.Panel1.Height=300

Your code should work.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #3
"reidarT" <re****@eivon.no> wrote in message
news:Oo**************@TK2MSFTNGP10.phx.gbl...
How do I set the height of a control from another control like

Me.Panel1.Height=300


This code will work assuming that "Me" is a form on which a control
called Panel1 exists.

If you wanted to manipulate the Panel from, say, another Button on
the same form, you'd need to get an object reference to the Panel
that the button can use. That's a little more involved, looking something
like (untested) :

Private Sub Button1_Click( _
ByVal sender as Object _
, ByVal e as Stystem.EventArgs _
) Handles Button1.Click
DirectCast( Me.FindForm, Form1 ).Panel1.Enabled = False
End Sub

HTH,
Phill W.
Nov 21 '05 #4

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

Similar topics

3
by: coolsti | last post by:
I need some help here. I am making an application which allows a user to look at a series of picture files one at a time, and enter the outcome of various visual tests to a database. The...
4
by: ALESSANDRO Baraldi | last post by:
Hi and Good Sunday. Have i any way to Reduce at Runtime, with no change on Design View, the Height property of Detail_Section on my Report.....? The Section Property is Read_Only but if i...
5
by: Eric | last post by:
Given System.Web.UI.Control Control Can I determine the height of Control without knowing specifically what it is?
2
by: Robson Carvalho Machado | last post by:
Dear friends, I'm dynamically creating a Hyperlink with spacer.gif as ImageURL that is an 1px transparent image only to determine link position, but as I create this link dynamically I could not...
0
by: Laksh | last post by:
Hi, I'm using Treeview control that comes with VS 2005. In my page I have this control inside a <div> tag. Now this <div> is made visible when a client side button click event is fired. I want to...
2
by: Steve Bottoms | last post by:
Hi, all! Using VB as code-behind in asp.net page... I have a TABLE control which I'm building dynamically. After the table is built, I'm trying to retrieve the HEIGHT property of that table...
3
by: Olaf Rabbachin | last post by:
Hi folks, I'm have a user-control that imitates a thumbnail-listview. Within, I have a panel (pnlOuter) that represents the viewable area and another panel (pnlInner) which represents the list...
12
by: Peter | last post by:
Using .NET 1.1 Window Forms I would like to place over 400 pictures on a panel control one after another one so user can scroll through them, but each picture is up to 200 pixels in height...
1
by: Wotney | last post by:
Hoping someone out there can help... I have an UpdatePanel that uses Atlas/Ajax to update it's contents without having to postback the entire page. (pnlUpdate) Within pnlUpdate I have a normal...
1
by: Bob Alston | last post by:
I have a system where many subforms are used. Often the size of the subform had to be larger than could be displayed without scrolling. I set the height of the subform to the typical height...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
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,...
0
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...

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.