transparent edges

Posts 18 of 8 · Page 1 of 1
transparent edges
i am working on a project and i want to make a gui.

how can i cut out edges to make them transparent??

Example:

Make form1 transparent, and have a picture box (The GUI) over it, then add your buttons etc

Form1 Properties > Backcolor > Transparent

There is another way to do that, I just can't remember it
go to form opacity and set it to zero i think.
wait, that will prolly make the picture box transparent to..
(do it programatically)

Code:
 Private Sub Form1_Load(ByVal sender As System.Object, _
       ByVal e As System.EventArgs) Handles MyBase.Load
 
       Me.Opacity = 0
       ' or Me.Opacity = 0.0 , can't remember
    End Sub
or use transparencyKey

Code:
Me.FormBorderStyle = _
    System.Windows.Forms.FormBorderStyle.None
Me.TransparencyKey = System.Drawing.Color.Green 'or whatever your backround color is
There are also ways of using custom shapes + GDI for the same effect, but it's a little more complex
Quote Originally Posted by NextGen1 View Post
(do it programatically)

Code:
 Private Sub Form1_Load(ByVal sender As System.Object, _
       ByVal e As System.EventArgs) Handles MyBase.Load
 
       Me.Opacity = 0
       ' or Me.Opacity = 0.0 , can't remember
    End Sub
or use transparencyKey

Code:
Me.FormBorderStyle = _
    System.Windows.Forms.FormBorderStyle.None
Me.TransparencyKey = System.Drawing.Color.Green 'or whatever your backround color is
There are also ways of using custom shapes + GDI for the same effect, but it's a little more complex
transparency key is glitchy.
Quote Originally Posted by XGelite View Post
transparency key is glitchy.
Can be... But still an alternative programatically, I prefer to give code versus built in properties, it's good to know how to do it on the fly, if necessary .

but also keep in mind, if not done right , Opacity can be tricky as well, opacity can make the whole form and it's controls transparent (by default inherit) so keep that in mind as well
k thanks guys ill try it out
Thanks for this! really helps!
Posts 18 of 8 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?