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

Make form transparent


Recommended Posts

You can use this for many things. For example changing loading to for example League of Legends style ( i mean that loading when dx8 asn graphics and sounds are loading)

Add this anywhere

```
Public Const GWL_EXSTYLE = (-20)

Public Const WS_EX_TRANSPARENT = &H20&

Public Const SWP_FRAMECHANGED = &H20

Public Const SWP_NOMOVE = &H2

Public Const SWP_NOSIZE = &H1

Public Const SWP_SHOWME = SWP_FRAMECHANGED Or _

SWP_NOMOVE Or SWP_NOSIZE

Public Const HWND_NOTOPMOST = -2

Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long

Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
```

And if you wanna make form transparent add this to that forms Form_Load

```
SetWindowLong Me.hwnd, GWL_EXSTYLE, WS_EX_TRANSPARENT

SetWindowPos Me.hwnd, HWND_NOTOPMOST, 0&, 0&, 0&, 0&, SWP_SHOWME
```
Link to post
Share on other sites
> Add this anywhere
>
> ```
> Public Const GWL_EXSTYLE = (-20)
>
> Public Const WS_EX_TRANSPARENT = &H20&
>
> Public Const SWP_FRAMECHANGED = &H20
>
> Public Const SWP_NOMOVE = &H2
>
> Public Const SWP_NOSIZE = &H1
>
> Public Const SWP_SHOWME = SWP_FRAMECHANGED Or _
>
> SWP_NOMOVE Or SWP_NOSIZE
>
> Public Const HWND_NOTOPMOST = -2
>
> Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
>
> Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
> ```

Eclipse Advanced have this already? or for each forms we need to put it again inside
Link to post
Share on other sites
> Just make sure you give credit instead of making it seem like it's your own.

I said i found it accidentally so idk who created it and idk where i found it so i cant look who maked it ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)
Link to post
Share on other sites
> give a link to the place you found it please

> I said i found it accidentally so idk who created it and idk where i found it so i cant look who maked it ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)

Anything not understandable? xD
Link to post
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
×
×
  • Create New...