Results 1 to 2 of 2
  1. #1
    guza44_44's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Posts
    431
    Reputation
    16
    Thanks
    310

    Application Shadow

    Simple Tutorial by: Guza

    This is a very simple code and will make a shadow on the right side of your application for more appeal.

    Go into the code of your form right under "Public Class Form1" and add this:

    Code:
        ' Define the CS_DROPSHADOW constant
        Private Const CS_DROPSHADOW As Integer = 131072
    
        ' Override the CreateParams property
        Protected Overrides ReadOnly Property CreateParams() As System.Windows.Forms.CreateParams
    
            Get
                Dim cp As CreateParams = MyBase.CreateParams
                cp.ClassStyle = cp.ClassStyle Or CS_DROPSHADOW
                Return cp
    then your application will now have a shadow, this is nice to use when u have a blank app.

  2. #2
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    - Note: awesome on giving Marcus credit, don't see that often

    Looks good, just don't forget to

    End Get
    and
    End Property

    Should be

    Code:
       ' Define the CS_DROPSHADOW constant
        Private Const CS_DROPSHADOW As Integer = 131072
    
        ' Override the CreateParams property
        Protected Overrides ReadOnly Property CreateParams() As System.Windows.Forms.CreateParams
    
            Get
                Dim cp As CreateParams = MyBase.CreateParams
                cp.ClassStyle = cp.ClassStyle Or CS_DROPSHADOW
                Return cp
          End Get
        End Property
    Also Note (From Marcus) Remember that this effect only works if windows "show shadow below menu's" is enabled
    Last edited by NextGen1; 01-02-2010 at 03:55 PM.


     


     


     



    The Most complete application MPGH will ever offer - 68%




Similar Threads

  1. Not a valid win32 application
    By terence in forum General Game Hacking
    Replies: 1
    Last Post: 02-03-2006, 06:52 AM