deminizer Posted March 29, 2017 Author Share Posted March 29, 2017 ```Private Declare Function GetWindowLong Lib "user32" _ Alias "GetWindowLongA" ( _ ByVal hWnd As Long, _ ByVal nIndex As Long) As LongPrivate Declare Function SetWindowLong Lib "user32" _ Alias "SetWindowLongA" ( _ ByVal hWnd As Long, _ ByVal nIndex As Long, _ ByVal dwNewLong As Long) As LongPrivate Declare Function SetLayeredWindowAttributes Lib "user32" ( _ ByVal hWnd As Long, _ ByVal crKey As Long, _ ByVal bAlpha As Byte, _ ByVal dwFlags As Long) As LongPrivate Const GWL_EXSTYLE = (-20)Private Const WS_EX_LAYERED = &H80000Private 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_COLORKEYEnd Sub]```Please help me get this code into frmMenu in Eclipse Renewal 1.7.0 Link to comment Share on other sites More sharing options...
deminizer Posted March 30, 2017 Author Share Posted March 30, 2017 Bump~ Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted March 30, 2017 Share Posted March 30, 2017 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. Link to comment Share on other sites More sharing options...
deminizer Posted March 31, 2017 Author Share Posted March 31, 2017 @'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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now