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

increase the form size

22
hi one and all
i have so many controls on a form,but the form has a limited size,how to increase the size of a form more than a window size by using scroll bars ,to place all the controls in single form, is there any way,
Apr 2 '07 #1
5 2838
vijaydiwakar
579 512MB
hi one and all
i have so many controls on a form,but the form has a limited size,how to increase the size of a form more than a window size by using scroll bars ,to place all the controls in single form, is there any way,
its not a good practise to have lot of ctrls spread all over the form
for that
Categorise all ctrl wrt their functionality and use tab stip ctrls
Apr 2 '07 #2
Killer42
8,435 Expert 8TB
hi one and all
i have so many controls on a form,but the form has a limited size,how to increase the size of a form more than a window size by using scroll bars ,to place all the controls in single form, is there any way,
You could put the controls in a picture box. You should be able to make the picture box bigger than the form, and move it around by use of scrollbars.

Of course, as vijaydiwakar pointed out, you need to consider whether you may simply have too many controls on your form, and need to try and simplify your UI.
Apr 2 '07 #3
devonknows
137 100+
You could put the controls in a picture box. You should be able to make the picture box bigger than the form, and move it around by use of scrollbars.

Of course, as vijaydiwakar pointed out, you need to consider whether you may simply have too many controls on your form, and need to try and simplify your UI.
I usually find using the Menu Editor (CTRL+E) to create yourself some menu's to access certain parts of your form, or create some label menus with a mouseover or something snazzy. But if you do take the Picture box remember to set in your forms resize sub

Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Resize()
  2. On Error Resume Next
  3.     if WindowState = 1 then Exit Sub 'Check For Minimization
  4.     Picture1.Move 0, 0, Width, Height
  5. End Sub
  6.  
Will keep your picture box to the edges of your form you may want to do the same for your scrollbars and such, but advice is with the others, i would reduce the amount of controls, and use things like InputBox if needbe to get certain data, save your settings to an INI file of some sort. and have other forms that can be called from a menu. Just use something like

Expand|Select|Wrap|Line Numbers
  1. frmSettings.Show vbModal, Me   '(this will keep frmSettings on top of the window and deny use of the other one till it is closed)
Kind Regards
Devon.
Apr 2 '07 #4
vijaydiwakar
579 512MB
I usually find using the Menu Editor (CTRL+E) to create yourself some menu's to access certain parts of your form, or create some label menus with a mouseover or something snazzy. But if you do take the Picture box remember to set in your forms resize sub

Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Resize()
  2. On Error Resume Next
  3.     if WindowState = 1 then Exit Sub 'Check For Minimization
  4.     Picture1.Move 0, 0, Width, Height
  5. End Sub
  6.  
Will keep your picture box to the edges of your form you may want to do the same for your scrollbars and such, but advice is with the others, i would reduce the amount of controls, and use things like InputBox if needbe to get certain data, save your settings to an INI file of some sort. and have other forms that can be called from a menu. Just use something like

Expand|Select|Wrap|Line Numbers
  1. frmSettings.Show vbModal, Me   '(this will keep frmSettings on top of the window and deny use of the other one till it is closed)
Kind Regards
Devon.
ya this can be done with the given code also
but some times its also required to show infomatory and input ctrls on the same form
i wuld liek to give on e ex. of my own form. In that form nearlly all fields are manual and the no o f ctrls were 315.........
U may think its not possible but trust me it was the case.....
where i can't use another form.......
in such case use tab stip ctrls, grid, pic box etc........
Regards
Apr 2 '07 #5
Killer42
8,435 Expert 8TB
ya this can be done with the given code also
but some times its also required to show infomatory and input ctrls on the same form
i wuld liek to give on e ex. of my own form. In that form nearlly all fields are manual and the no o f ctrls were 315.........
U may think its not possible but trust me it was the case.....
where i can't use another form.......
in such case use tab stip ctrls, grid, pic box etc........
Yes, the tab strip especially, may be well worth considering. It allows you to logically group your controls, without having to put them on a separate form.
Apr 2 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: VMI | last post by:
How can I increase the maximum size of a Windows form? I'm trying to make a really big Windows form (about 1000x1000) but the designer doesn't allow me to do that. It only goes up to 800x800 (I...
5
by: VMI | last post by:
How can I increase the maximum size of a Windows form? I'm trying to make a really big Windows form (about 1000x1000) but the designer doesn't allow me to do that. It only goes up to 1000x780....
2
by: msnews.microsoft.com | last post by:
Hi all I am working on an application for a touch screen terminal. I have placed a datagrid on the form and the user will select a row on the datagrid. I have increased the font size on the...
2
by: Irfan | last post by:
Hi, I have a datagridview and some Buttons on a form. When I drag the form down to increase its size at run time, i want the datagridview also to increase in size so that i can view all the data...
4
by: =?Utf-8?B?R2F1cmF2?= | last post by:
Hello... I posted this a couple of weeks back, but could't get a reply, so trying again! I use the Setup project in C# to create a .msi file to be distributed to the clients. The size of...
4
RobH
by: RobH | last post by:
How can I increase the size of the Checkbox used on a form? I can see its going to become a problem for some of the users on my application. (I personally think they could do with a little size...
5
by: BillE | last post by:
I am using VB.NET, VS 2005 Add a windows form and in design view: Add a Radiobutton to the windows form Set AutoSize = True for the radiobutton Set the MaximumSize width to 90 for the...
4
by: lianne.ribeiro | last post by:
I am using Visual C++ 6 IDE,with 512MB RAM. I have coded a recursive function that has a correct end condition for recursion. There is no infinite recursion. For some input data,the recursive...
10
by: Devang | last post by:
Hello, I am using php script to upload file. some times if file size is too big(1GB) it takes too much time to upload. Can someone suggest me the way to increase upload speed. thanks
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: 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...
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.