Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Code insertion


deminizer
 Share

Recommended Posts

```
Private Declare Function GetWindowLong Lib "user32" _
   Alias "GetWindowLongA" ( _
   ByVal hWnd As Long, _
   ByVal nIndex As Long) As Long
Private Declare Function SetWindowLong Lib "user32" _
   Alias "SetWindowLongA" ( _
   ByVal hWnd As Long, _
   ByVal nIndex As Long, _
   ByVal dwNewLong As Long) As Long
Private Declare Function SetLayeredWindowAttributes Lib "user32" ( _
   ByVal hWnd As Long, _
   ByVal crKey As Long, _
   ByVal bAlpha As Byte, _
   ByVal dwFlags As Long) As Long
Private Const GWL_EXSTYLE = (-20)
Private Const WS_EX_LAYERED = &H80000
Private Const LWA_COLORKEY = &H1&
Private Const LWA_ALPHA = &H2&

Private Sub Form_Load()
   'Set the Form transparent by color.
   BackColor = RGB(127, 127, 0) 'Unique but explicit (non-system) color.
   SetWindowLong hWnd, _
                 GWL_EXSTYLE, _
                 GetWindowLong(hWnd, GWL_EXSTYLE) Or WS_EX_LAYERED
   SetLayeredWindowAttributes hWnd, BackColor, 0, LWA_COLORKEY
End Sub]
```
Please help me get this code into  frmMenu in Eclipse Renewal 1.7.0
Link to comment
Share on other sites

@'Mohenjo:

> Open the cient, right click the frmMain and paste the top on the top then search for "Sub Form_Load()" and paste the other part there. You'll probably have to fiddle a bit to get it working how you want, then debug or compile.

Thanks a lot
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...