Link to home
Start Free TrialLog in
Avatar of chokka
chokkaFlag for United States of America

asked on

How to increase the height of VB.Net form in VS 2005 ?



How to increase the height of VB.Net form in VS 2005 ?

Width : 1004

Height : 780
Avatar of Zhaolai
Zhaolai
Flag of United States of America image

Form1.Size=New Point(1004, 780)
 
Avatar of chokka

ASKER



I am adding new controls to the form..

Its Membership Enrollment  Form

I need to add plenty of controls on 1 Page.

how to increase the height ?
Avatar of Tom Beck
Click on the form and stretch it at the corners or set the size in properties.
If you know the increment of the height, do this:

Form1.Size=New Point(Form1.Width, Form1.Height + HeightIncrement)
Avatar of chokka

ASKER




1) I am on design mode, i need to controls from design. I really dont want to write any code .. as because .. we are not increasing the size of the form on run time. Size of the form will decided before compiling the code.

2) i need to have vertical scroll bar on right hand side of the form
Ah,at design time, just point your mouse at the lower right corner of the form and drag it down to get bigger.
Or as @tommyBoy pointed out, change the Size property on the form's property list.
 
Avatar of chokka

ASKER



At Design Time ...! I am not able to exceed the Form Size limit

Width : 1000

Height : 780

See the screen shot below,


Screenshot.PNG
Do you have MaximumSize property set to (1004, 780)? if so, change it to (0,0).
Avatar of chokka

ASKER



Maximum Size - 0,0

Minimum Size - 0,0

Size :- 1004, 780 ..!

More than this, even if use drag on either side of the Form .. its not changing ..!
Avatar of chokka

ASKER

I am able to increase the width  ..

But not height ?

I actually want to increase the height
I believe you hit the maximum ALLOWED height of your machine, which is your display setting.
 
Avatar of chokka

ASKER


You may be right ..!

How to change the setting ..

Some thing in Visual Studio Environment setting properties ..!
ASKER CERTIFIED SOLUTION
Avatar of Zhaolai
Zhaolai
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can always add your controls to a Panel inside your form and set AutoScroll to True in the properties. This will produce a scroll bar for any controls that do not fit.
Avatar of chokka

ASKER


Thanks, I have set the property -to True ..

Still the main issue of setting the Form  Property is not able to succeed ..!


Avatar of chokka

ASKER



I have attached the screen shot of Form 1

What ever controls, i have added to the Form 1 .. I need to add similar set of controls in the Form 2 with one common submit button.

If i am keeping two forms ..! Technically, i need to maintain the Visible of both forms and also i will face the issue of transfering the values from one FORM to another FORM ..!

It is tedious for programmer and also end user
Page1.JPG
Avatar of chokka

ASKER



This is actually  a serious issue .. not only for end user .. but also for me ..!

Since we need to store the data on single click event .. which has more than 50 Values..!

Imagine, if we split 25 values from Page 1 and 25 Values on Page 2 ..!  There can be some issue arises while proceeding for storing the data  ..!
Now that you already resolved the issue in other thread, you can probably go ahead to close this question.

Avatar of chokka

ASKER

In other thread, i discussed about Vertical Scroll bar
Yes, by using scrollbar, you can place more controls on the form. You or end users just need to scroll up/down or left/right to see all the fields on the form.

Does this technique resolve your problem?

Avatar of chokka

ASKER


I have to follow different approach .. for handling many controls on one Form
What different approach are you taking? Would you mind sharing with rest of us? I do not see any suggestions in the link of your earlier post.

Thanks.

Avatar of chokka

ASKER


Initial Posting of this question is .. I am not able to increase the size of the Form.

Ans should be .. it is possible or not ?

On my research, i realized that we cannot increase the size of the Form .. On changing the resolution will impact the Application when it goes for deploying on User's Machine