In C# Winforms we can give a rounded corner effect to a form? [Resolved]

Posted by Sudheep.grandhe under C# on 12/16/2011 | Points: 10 | Views : 1566 | Status : [Member] | Replies : 2
Hi,

in Winforms we can give a rounded corner effect to a form.if in the sense can you tell me step by step procedure.

Best,
Sudheep.



Responses

Posted by: Hmanjarawala on: 12/16/2011 [Member] Bronze | Points: 50

Up
0
Down

Resolved
Hi,
here is a sample

Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint
Dim gr As System.Drawing.Graphics= Me.CreateGraphics()

' Fill the ellipse.
gr.FillEllipse(System.Drawing.Brushes.DarkGray, 0, 0, _
Me.ClientSize.Width - 5, _
Me.ClientSize.Height - 5)
End Sub


Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere
http://fieredotnet.wordpress.com/

Sudheep.grandhe, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gow.net on: 12/16/2011 [Member] Starter | Points: 25

Up
0
Down
it possible o WPF

gowthaman8870226416

Sudheep.grandhe, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response