Results 1 to 2 of 2

Thread: Shaped Forms

  1. #1

    Thread Starter
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670

    Post

    I know this has been mentioned before (many times) but can someone point me towards any hints and tips on producing strange shaped forms - eg circular, oval etc etc



    ------------------
    Mark "Buzby" Beeton
    VB Developer
    [email protected]



  2. #2
    Lively Member Ishamel's Avatar
    Join Date
    Nov 1999
    Location
    Edinburgh, Scotland
    Posts
    112

    Post

    Mark,

    I can't remember where I found this code, but its a start.

    Code:
    Private Declare Function CreateEllipticRgn Lib "gdi32" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long
    
    Private Declare Function SetWindowRgn Lib "user32" (ByVal hWnd As Long, ByVal hRgn As Long, ByVal bRedraw As Boolean) As Long
    
    Private Sub Form_Load()
        Show 'Show the form
        SetWindowRgn hWnd, CreateEllipticRgn(0, 0, 300, 200), True
    End Sub
    ------------------
    Ishamel
    [email protected]

    How can I tell you I love you when you are sitting on my face?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width