|
-
Aug 7th, 2009, 01:32 AM
#1
Thread Starter
Addicted Member
The form does not expand
Hi
I am developing my first vb.net application. Now i have 20 exployees records to display.....i am on the 7th record and the form does not allow any more space at the bottom. I checked the "locked" property...it is "false"......i want to display all the records on the same page...
Any ideas ?
-
Aug 7th, 2009, 01:55 AM
#2
Re: The form does not expand
The Locked property is only relevant at design time and it only prevents you from dragging the form edges to resize. It has no effect at run time.
If the FormBorderStyle is set to Sizable then the user can resize the form at run but it's not going to change size spontaneously. If you want the form to change size automatically then you'll have to write code to do it.
That said, you should necessarily increase the size of the form because it may end up too big to reasonably fit on a screen. That's where scroll bars come in. You should generally make your form a reasonable initial size and then add a grid or whatever and then let the user scroll up and down to see all the records. You can also let them expand the size of the form if they want to see more at a time.
-
Aug 7th, 2009, 02:42 AM
#3
Thread Starter
Addicted Member
Re: The form does not expand
 Originally Posted by jmcilhinney
The Locked property is only relevant at design time and it only prevents you from dragging the form edges to resize. It has no effect at run time.
If the FormBorderStyle is set to Sizable then the user can resize the form at run but it's not going to change size spontaneously. If you want the form to change size automatically then you'll have to write code to do it.
That said, you should necessarily increase the size of the form because it may end up too big to reasonably fit on a screen. That's where scroll bars come in. You should generally make your form a reasonable initial size and then add a grid or whatever and then let the user scroll up and down to see all the records. You can also let them expand the size of the form if they want to see more at a time.
Thank you for your reply.....
I understand that if i want to resize at run time i need to write code for it,but I what i want to do is in design time...not at run time.....is there anything i can do at design time to add more stuff in the form...
-
Aug 7th, 2009, 03:04 AM
#4
Re: The form does not expand
There's no reason you shouldn't be able to resize the form at design time. If you're unable then either something is seriously wrong with your project or else you've set the MinimumSize property.
-
Aug 7th, 2009, 04:17 AM
#5
Thread Starter
Addicted Member
Re: The form does not expand
 Originally Posted by jmcilhinney
There's no reason you shouldn't be able to resize the form at design time. If you're unable then either something is seriously wrong with your project or else you've set the MinimumSize property.
Minimumsize property is set to "0,0"......it was able to expand it upto an extent but not anymore.....i mean what i want is to keep on adding the employee details at design time. And at run time when it does not fit in the screen then it should add a scrollbar automatically....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|