Solved

Minimum form size

Posted on 2002-06-02
4
205 Views
Last Modified: 2010-05-02
I want to be able to set a minimum form size (i.e. if a user tries to size the form smaller than X,Y, the form will not shrink.  I have tried to do this by creating paramters in the form.resize area, but I do not like the shakey snap-back look of the form.  I have seen forms where you cannot drag the outter edge inward past a certain point.  This is what I want.  Can someone help?
0
Comment
Question by:perkster
4 Comments
 
LVL 8

Accepted Solution

by:
glass_cookie earned 100 total points
ID: 7050366
Hi1

Here's a file for you over the net:

Download...
http://www.vb-helper.com/HowTo/sizeform.zip
Description: Restrict a form's minimum and maximum width and height (3K)

That's it!

glass cookie : )
0
 
LVL 4

Expert Comment

by:Monchanger
ID: 7050368
Larry Rebich gives a method of accomplishing this task in his site at: http://www.buygold.net/v04n11/v04n11.html

The resize is not perfectly clean - you are able to move the mouse into the "restricted" area when resizing, yet the form's border does not, unlike what I believe you attempted.

This already uses subclassing to accomplish the task. If you need it any cleaner and you might have dig into the API, hooking mousedown event repositioning the mouse cursor.
0
 
LVL 2

Expert Comment

by:corvanderlinden
ID: 7050490
see http://www.vb2themax.com/Item.asp?PageID=TipBank&ID=177

you can also download the MsgHook DLL at that side
0
 

Author Comment

by:perkster
ID: 7054357
Perfect.  Thanks.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Macro which automatically sends attachment to Outlook 14 69
vb6 connector to mongodb 2 81
VB6 ListBox Question 4 42
MS Access 03, TransferText, decimal places 8 68
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now