Search results

  1. J

    Making controls transparent inorder to see a gradient

    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...
  2. J

    Making controls transparent inorder to see a gradient

    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...
  3. J

    Making controls transparent inorder to see a gradient

    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...
  4. J

    Making controls transparent inorder to see a gradient

    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...
  5. J

    Making controls transparent inorder to see a gradient

    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)...
Top Bottom