Code used to paint gradient
Here is the code I use to paint the gradient:
'Private Sub frmMain_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint
Dim g As Graphics = Me.CreateGraphics
coordinates for both the gradient and the...
I am going to try a different approach
Thank you all for your help. I am still having problems though. I've learned that my controls are transparent if you just set the backcolor to transparent. The problem: they show the forms backcolor and apparently when I draw the gradient on the form it...
I'm not too sure what MDI form is?? But when lblMyLable.Parent = Me didn't work I just tried messing around.
I am not using a background Image I used the drawing class to make the gradient.
Dim g As Graphics = Me.CreateGraphics
Dim x As Integer = Me.width
Dim y As Integer = Me.Height
Dim...
Thank you for your reply.
I tried this:
lblMyLabel.Parent = Me
lblMyLabel.BackColor = Color.Transparent
I still could not see the gradient through the label.
I then tried:
lblMyLabel.Parent = Me.Parent
with or without the next line(lblMyLabel.backcolor...) I can see the gradient where...
Hi,
I put a metallic looking gradient on a form. The problem is that all my controls, lables, groupboxes etc still show as ugly grey squares. I want to make them transparent so the gradient on the form shows through them. I tried
lblMyLabel.BackColor = Color.FromArgb(0, lblMyLabel.BackColor)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.