Results 1 to 4 of 4

Thread: Frames

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Posts
    225
    Hiyas,

    Is it possible to make a Frame's background transparent?

    Thanks,

    -Git

  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
    
    Const GWL_EXSTYLE = (-20)
    Const WS_EX_TRANSPARENT = &H20&
    
    Private Sub Command1_Click()
        SetWindowLong Frame1.hwnd, GWL_EXSTYLE, WS_EX_TRANSPARENT
    End Sub

  3. #3
    Guest
    This will work better:

    Code:
    Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
    Const GWL_EXSTYLE = (-20)
    Const WS_EX_TRANSPARENT = &H20&
    
    Private Sub Command1_Click()
    
        SetWindowLong Frame1.hwnd, GWL_EXSTYLE, WS_EX_TRANSPARENT
        Me.Hide
            Me.WindowState = vbMinimized
            Me.WindowState = vbNormal
        Me.Show
    
    End Sub

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Posts
    225
    Thanks, I'll try it out tonight! =)

    Cya.

    -Git

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