...I'm using A rounded rectangle... constrained to the width and height of the form...
border style = none
Appearance = Flat
scale mode = pset
using:
scalewidth/scaleheight to get the width/height (in pixels)
and scalex/scaley (X,vbpixels,vbtwips) to set the size of the form
And drawing the custom frame with a series of filled circles (for the corners) and filled boxes (for the center)
using the radius of the circles and for/next loops to generate a gradient from specified color to the edge...
I made a picture box in the lower right corner, and fomed it into a shape I am using as a grab-handle,
and I am using it's mouse down/move/up to set an initial point and initial size...
then modifying the size relative to the mouse and those 2 initial items...
similar to:
width = oldWidth + (mouseX - oldX)
there is a global Var (of boolean) that is switched on and used to restrict reentry to the mousedown event to set the initial points...
If the trigger is switched the commands in the mousemove are active... (resizing the window)
Finally the trigger is switched to off when mouseUp occurs
(All three using the left mouse button)
I will post the code here tomorrow when I get to work.
Let me know if you have any alternative suggestions...
If you don't understand what I am talking about...
Like I said I will post the code tommorrow, and you can read through it...
Note: when using PictureBoxes As Buttons...
I Usually rename them to CommandX (Command1...) such as a command button is named... If it keeps it's properties as a picture box... For only displaying a picture... It remains Picture1
All PictureBoxes AND CommandButtons Used in My Code That follows on this post will ALL be pictureboxes! Sometimes... the BASIC things in life are the best...
or at least the most fun ;-)
-Josh Stribling