Important alert: (current site time 7/15/2013 6:12:36 AM EDT)
 

winzip icon

Add 3D Effect To Form, Text, Label

Email
Submitted on: 5/29/2013 12:48:19 PM
By: 岑爱 期望  
Level: Beginner
User Rating: By 2 Users
Compatibility: VB 6.0
Views: 1415
author picture
(About the author)
 
     '======================================================================================================== ' ADD A 3D EFFECT TO FORMS, TEXTBOXES, AND LABELS ' PROGRAM : DATARA DRAGONS EDUCATIONS ' AUTHOR : STEPHANUS BAGUS SAPUTRA / SHIM AI QIWANG / STEVEN MARTIN ' COMPANY : CV. GARUDA PERMATA SAPUTRA ' WEBSITE : WWW.DATARA.CO.ID | WWW.STEVENOFFICIAL.COM ' LICENSE : CREATIVE COMMONS PUBLIC LICENSE ( CCPL/25-5-2013 ) ' COPYRIGHT 2013 DATARA ( GARUDA PERMATA INDONESIA ). ALL RIGHTS RESEVERD. '-------------------------------------------------------------------------------------------------------- ' THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF ' THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). ' THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ' ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. ' ' BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, ' YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. ' TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, ' THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION ' OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS. '========================================================================================================= 'Set form's AutoRedraw property toTrue Sub PaintControl3D(frm As Form, Ctl As Control) ' This Sub draws lines around controls to make them 3d ' darkgrey, upper - horizontal frm.Line (Ctl.Left, Ctl.Top - 15)-(Ctl.Left + _ Ctl.Width, Ctl.Top - 15), &H808080, BF ' darkgrey, left - vertical frm.Line (Ctl.Left - 15, Ctl.Top)-(Ctl.Left - 15, _ Ctl.Top + Ctl.Height), &H808080, BF ' white, right - vertical frm.Line (Ctl.Left + Ctl.Width, Ctl.Top)- _ (Ctl.Left + Ctl.Width, Ctl.Top + Ctl.Height), &HFFFFFF, BF ' white, lower - horizontal frm.Line (Ctl.Left, Ctl.Top + Ctl.Height)- _ (Ctl.Left + Ctl.Width, Ctl.Top + Ctl.Height), &HFFFFFF, BF End Sub Sub PaintForm3D(frm As Form) ' This Sub draws lines around the Form to make it 3d ' white, upper - horizontal frm.Line (0, 0)-(frm.ScaleWidth, 0), &HFFFFFF, BF ' white, left - vertical frm.Line (0, 0)-(0, frm.ScaleHeight), &HFFFFFF, BF ' darkgrey, right - vertical frm.Line (frm.ScaleWidth - 15, 0)-(frm.ScaleWidth - 15, _ frm.Height), &H808080, BF ' darkgrey, lower - horizontal frm.Line (0, frm.ScaleHeight - 15)-(frm.ScaleWidth, _ frm.ScaleHeight - 15), &H808080, BF End Sub 'DEMO USAGE 'Add 1 label and 1 textbox Private Sub Form_Load() Me.AutoRedraw = True PaintForm3D Me PaintControl3D Me, Label1 'Label1 is name of label PaintControl3D Me, Text1 'Text1 is name of textbox End Sub '==================================================================================================================================================================================================== ' ADD A 3D EFFECT TO FORMS, TEXTBOXES, AND LABELS '---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ' UNDER SUPPORT BY MILIS REFERENCE PROGRAM CREATIVED : ' 1. Adnan Hasanovic, Add a 3D Effect to Forms, Textboxes, and Labels, http://www.freevbcode.com/ShowCode.asp?ID=2377, connected at 2013-05-26 '====================================================================================================================================================================================================

 
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.

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 Beginner 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


 There are no comments on this submission.
 

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.