RoundCorners (c) Cyber Solutions Ltd 2002

Overview

RoundCorners is a DLL component which adds style to your application by rounding the corners of forms. This makes your application look different and more interesting. You need the handle for the window and the coordinates for it. The DLL may be referred to from any Microsoft application e.g. Visual Basic, Access VBA, Excel, Visual Interdev, FrontPage, VBA.




Setup

Run SETUP.EXE to register the DLL.  In Visual Basic, take the Project option on the menu and select References.  If you cannot see RoundCorners, use the browse button to find it. Select the check box against it so that this is ticked.  In Access open a module and select Tools / References fom the menu. In Excel use Alt-F11 to open the code window and use Tools / References from the menu.



Sample Code

Dim r As New Rounded
r.RoundCorner Form1.hWnd, Form1.ScaleTop, Form1.ScaleLeft,Form1.ScaleTop + Form1.ScaleHeight,_ Form1.ScaleLeft + Form1.ScaleWidth

You would normally put this code in the Form Load event or Form Open event




Restrictions and Warnings

All coordinates are expressed in pixels so it is best if you set the scale mode of the form to Pixel and use Scale Top, etc.

If the size of the form changes e.g. user presses maximise or minimise button, the region you are viewing this through WILL NOT. You need to either remove this option or rerun the RoundCorner sub when it happens.



Email tollside@yahoo.com for help



Register

If you intend to use Rounded Corners you must PAY for it. Please make a donation using PayPal - see below.  The donation can be anything depending on how you value the program - anythingfrom $1 upwards although we feel the program is worth more.


Use PayPal - https://www.paypal.com.  Our email is tollside@yahoo.com.  Put RoundCorners in the subject. The registered copy will be emailed to you.