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

Why can't I get the right control height?

Hi all,

Can someone take a look at the below code and see if you can tell me why
the control just cannot have a height that reaches the bottom of the form.
It always exceeds it by a value of 70 or so.

This is within a form.

Thanks,
Adam
tvSelectFolder.Top = (MenuStrip1.Size.Height + ToolStrip1.Size.Height) + 5
(THIS WORKS)

tvSelectFolder.Height = Me.Size.Height - (MenuStrip1.Size.Height +
ToolStrip1.Size.Height + StatusStrip1.Size.Height + 5) (THIS DOES NOT WORK
PROPERLY)
Apr 13 '06 #1
4 884
what are you trying to accomplish here? what version of visual studio are you
using? in 2005 theres a property that allows you to fill an object completely
in the form, if that helps
--
-iwdu15
Apr 13 '06 #2
I fixed it.

I needed to use clientsize instead of height for the form value.

I wanted to expand the controls on the form when its scales by the user. I
found using the panel and split container voids the menustrip from scaling
properly hence wanted to just go ahead and write my own code to handle it.

Vesion 2005 Pro.

Thanks,

Adam

"iwdu15" <jmmgoalsteratyahoodotcom> wrote in message
news:56**********************************@microsof t.com...
what are you trying to accomplish here? what version of visual studio are
you
using? in 2005 theres a property that allows you to fill an object
completely
in the form, if that helps
--
-iwdu15

Apr 13 '06 #3

"Adam Honek" <Ad*******@Webmaster2001.freeserve.co.uk> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
I wanted to expand the controls on the form when its scales by the user. I
found using the panel and split container voids the menustrip from scaling
properly hence wanted to just go ahead and write my own code to handle it.


Are you using Anchor and Dock correctly?

Apr 13 '06 #4
I believe so. I tried various combinations and it just wouldn't listen.

Adam

"Homer J Simpson" <no****@nowhere.com> wrote in message
news:6yi%f.72461$%H.17248@clgrps13...

"Adam Honek" <Ad*******@Webmaster2001.freeserve.co.uk> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
I wanted to expand the controls on the form when its scales by the user.
I found using the panel and split container voids the menustrip from
scaling properly hence wanted to just go ahead and write my own code to
handle it.


Are you using Anchor and Dock correctly?

Apr 13 '06 #5

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

Similar topics

4
by: Yuk Cheng | last post by:
<<<start index.htm>>> <html> <head> <script> function perform(action){ } </script> </head>
1
by: Anna K. | last post by:
Hi Experts, I'm new to JavaScript and web-based apps development, so I'll tell you right off that I don't really know my way around it as of yet. I'm trying to create a code library set with...
2
by: VB Programmer | last post by:
I only have 1 set of <FORM> tags in my HTML file, but I keep getting this error. Any ideas? *********** A page can have only one server-side Form tag. Description: An unhandled exception...
7
by: Shimon Sim | last post by:
I have a custom composite control I have following property
1
by: laurakr | last post by:
I am trying to use a clear to get my bottom nav bar below the quote box on the right, but it isn't working. I would like the bottom edge of the quote box to "stick" to the footer nav bar but copy...
2
by: Patrick Sullivan | last post by:
Hi people, I've been trying to get the text of a menu list to align at the bottom of a table cell. Can't get to work with html or css and html. Menu should be lined up with bottom right of logo....
31
by: Sarita | last post by:
Hello, this might sound stupid, but I got a really nice homepage template which unfortunately is a 3-Column Fixed Width CSS format. Now I don't have any content for the right column and would...
4
by: erikirl | last post by:
http://www.hardwareforfree.com/ I'm trying to get the Consumer Gift Network image to be in the top right corner of the 800px area in the header. I have searched for hours and tried a lot of...
3
by: smokymtnman | last post by:
I have a drop down menu that has grown so long that I am afraid it will be hidden at the bottom of the page. I am using a ssi file for navigation. I was wondering if I can use the same code but...
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
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
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...
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...
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.