Important alert: (current site time 7/16/2013 3:10:52 AM EDT)
 

winzip icon

UPDATE! FANTASTIC RESIZABLE skinned form demonstrating forms with non-standard shapes * VERSION 3 *

Email
Submitted on: 9/1/2001 5:20:50 AM
By: Rob Wright  
Level: Intermediate
User Rating: By 41 Users
Compatibility: VB 4.0 (32-bit), VB 5.0, VB 6.0
Views: 25603
(About the author)
 
     This is an update to my popular Resizable Skinned Form. The screenshot below tells you what it looks like and how it works, so this description will only list the new features. NEW FEATURES IN VERSION 3 ~ Dynamic colour scheme changing ~ Two modes of resizing

 

Windows API/Global Declarations:

Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
'**************************************
'Windows API/Global Declarations for :UPDATE!FANTASTIC RESIZABLE skinned form demonstrating forms with non-standard shapes * VERSION 3 *
'**************************************
Too many to list ;) Just download it!
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 1 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

9/1/2001 6:32:45 AMIceWeb Systems

This code is truly impressive and perhaps a similar style of this code in C++ was used to create the new GUI in windows XP? Your code shows that you have taken time and shown your programming knowledge to the web. Congratulations from IceWeb Systems.
(If this comment was disrespectful, please report it.)

 
9/1/2001 7:53:09 AMeasf / flu

code is tight .. suggestion would be: try to eliminate the flicker
(If this comment was disrespectful, please report it.)

 
9/2/2001 2:10:32 AMRobert W. grossman

Good code. It would be better if the form would resize while you dragged the mouse though :)
(If this comment was disrespectful, please report it.)

 
9/4/2001 2:42:08 PMRob Wright (author)

Hey guys, please vote and leave comments ;)
(If this comment was disrespectful, please report it.)

 
9/6/2001 10:50:33 AMTim Markoski

Awesome Example!

Very clean and easy to follow.

Excellent job on this one.
(If this comment was disrespectful, please report it.)

 
9/15/2001 10:36:13 AMSteve Mack

Great code! 5 globes
;)
(If this comment was disrespectful, please report it.)

 
10/28/2001 2:42:36 AMpsycokill1

didn't look at the code yet, but ran the program.

anyway, you should take a look at using sendmessage for resizing the window instead. that way, you can get the resize rectangle and windows will automatically resize the window as appropriate. (Hint: the WM_NCLBUTTONDOWN message with the wparam = a constant that begins with HT (i.e. HTLEFT to resize the left side))
(If this comment was disrespectful, please report it.)

 
12/8/2001 6:05:03 AMMatti Blom

Hi!
To make it better use GetSystemMetrics API to get default taskbar etc. sizes from OS. I give you 5 Globes

Matti
(If this comment was disrespectful, please report it.)

 
7/24/2002 5:32:49 AMolu olubodun

Simple and neat. Eliminating flicker would smash records.
(If this comment was disrespectful, please report it.)

 
7/26/2002 8:41:08 AMTerry L

Very Nice Job Well Done 5
(If this comment was disrespectful, please report it.)

 
7/27/2002 1:11:55 AMBengie

Hi, This Code ROCKZ if You're new to VB and only 14yr old you're great (Y) Cotinue like this :D
(If this comment was disrespectful, please report it.)

 
7/29/2002 7:48:41 AMMohideen

Excellent work, Works fine with regular forms. How to apply this method for a MDIForm ?

(If this comment was disrespectful, please report it.)

 
11/16/2002 2:07:59 PM

Great Code!!
(If this comment was disrespectful, please report it.)

 
3/16/2003 12:06:06 PM

Hmmm... person above... I sense a little jealousy. By the way, if you want to insult someone, try waiting until you are maybe in middle school? LEARN TO SPELL! Great example, Rob! Keep up the GREAT work!
(If this comment was disrespectful, please report it.)

 
7/13/2005 1:17:44 AMFranco Zapata

IT'S VERY COOL!
CONGRATULATIONS!
5 STARS!!!
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.