Results 1 to 3 of 3

Thread: Can i create a transperent form

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2001
    Posts
    27

    Post

    Hi friends,
    i am quite new in api programming so please help me for creating a form with atransperent look.By using the paint desktop api i can get only the windows background but i also need the icons also to appear which are behind my form. the icons can also be non working or like dummy.so please reply.

    Also i want to know wheather it is possible to create some forms with different shape rather than the conventional one, by using api or activex.

  2. #2
    Guest
    Try this:


    Code:
    Private Declare Function SetWindowLong _
    Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As _
    Long, ByVal nIndex As Long, ByVal dwNewLong As _
    Long) As Long
    
    Private Const GWL_EXSTYLE = (-20)
    Private Const WS_EX_TRANSPARENT = &H20&
    
    Private Sub Form_Activate()
        SetWindowLong Me.hwnd, GWL_EXSTYLE, WS_EX_TRANSPARENT
    End Sub

  3. #3
    Hyperactive Member Amon Ra's Avatar
    Join Date
    Feb 2001
    Location
    In some cave on Uranus...
    Posts
    500

    Talking Transparency class and AnimateWindow

    Hey, i recently created a class that u can use to make your form transparent, and to make transitions effects using AnimateWindow. really easy to use, and it should help you. ohh, but u have to be running n win2k though.
    Attached Files Attached Files

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