Question : control transparent problem

hi,
I have set the transparent key property of a form to same color of backrgound of that form and I have set the border style of that form to none
I have a picture box control which I want to use it as a backgroud so I set some background image to that picture box
now I have another picture box control (which has icon or png logo) which should be transparent to the main picture box (which meant to be as background for all other controls), but the problem that is that when I make this logo picture box as tranparent, its showing nothing as a background !!

I tried to solve this to set the form's background image property to this background image, it works but the problem the back ground image here is repeated in both X and Y axis

Answer : control transparent problem

If you are using a GraphicsPath, then you should be able to get rounded corners like this:

Simply round corners of a form
http://bytes.com/topic/visual-basic-net/answers/352802-simply-round-corners-form
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
Dim p As New Drawing2D.GraphicsPath()
p.StartFigure()
p.AddArc(New Rectangle(0, 0, 40, 40), 180, 90)
p.AddLine(40, 0, Me.Width - 40, 0)
p.AddArc(New Rectangle(Me.Width - 40, 0, 40, 40), -90, 90)
p.AddLine(Me.Width, 40, Me.Width, Me.Height - 40)
p.AddArc(New Rectangle(Me.Width - 40, Me.Height - 40, 40, 40), 0, 90)
p.AddLine(Me.Width - 40, Me.Height, 40, Me.Height)
p.AddArc(New Rectangle(0, Me.Height - 40, 40, 40), 90, 90)
p.CloseFigure()
Me.Region = New Region(p)
Random Solutions  
 
programming4us programming4us