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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to resize the form (width Only)

Status
Not open for further replies.

dass

Programmer
Feb 25, 2002
33
IN
I want to allow the user to resize only width of the form
Can it posible

please give me the response with coding

dass@powerbiss.com
 
In your form resize event just put this line of code

thisform.height = 250 (whatever height that you want)

When the user tries to change the form size the width will change but the height will always go back to the size that you specify.

 
Set your maxqidth and minwidt to the width you have chosen at design time.


In the init() event of the form, code the following:

LOCAL llRetVal

llRetVal = DODEFAULT()

IF llRetVal
WITH THIS
.Maxheight = .Height
.MinHeight = .Height
ENDWITH
ENDIF

RETURN llRetVal

HTH,
Weedz (Edward W.F. Veld)
My private project:Download the CrownBase source code !!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top