Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can form's height more than 9000 twip ? 1

Status
Not open for further replies.

sisan

Programmer
Jan 9, 2002
39
ID
I want to build an application uses a form, and its size is same as the paper's form (A4 Portrait), then I add a scroll bar. I try to set the form's height to the size I want, but it seem that the maximum height is only 9000 twips. Is there any way to solve my problem?
Thanx.
 

Your forms height is regulated by the display area's resolution. 18,000x24,000 @ 1200x1600. If the computers video card has enough memory you can extend the for beyond the screen limits. What would be easier is to check into MDI forms.

Good Luck
 
is your video resolution set to 800x600?
You can't create a window larger then the desktop. Since most drivers impliment twips as 15 twips per pixel that would be you 9000 limit

Now that being said I think you are a bit confused (please don't get offended) on what you want.

What you want is a client area that is as large as a A4 paper. If you just want to print out what is on the form you may be out of luck.
 
Oh MDI forms have the same limit.
I can do what you want in VC++ but that doesn't help sorry.
 
MDI parent forms do, but MDI child forms don't, which is what I suspect vb5prgrmr was getting at.
 
Thank for you all. Now I know much more, then I'll try some of your advices !
Thanx again!
 
Hi sisan,

You can change the height to what you want. But you need to change the BorderStyle property to Fixed or None (0,1,3).

This is because a changable border is one that a user can change the size on, and the user is not allowed to re-size the form past the dimensions of the parent window or the screen.
With a fixed border the user cannot change it's size. Only scroll the window.

You need to use a MDI form in order for the scroll bars to appear though, otherwise, if the form is longer than the screen, the user cannot scoll down. [/b][/i][/u]*******************************************************
General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top