About Shaped forms in vb.NET
-
I made some shaped forms... but I have never found out How to create somthing like this shape, a recangle with rounded corners: Look at the white area.. Click Here :~ any ideas? I used this page
This code will generate a rectangle(200x200) with rounded corners... Dim Path As New GraphicsPath Path.AddArc(0, 0, 40, 40, 180, 90) Path.AddArc(160, 0, 40, 40, -90, 90) Path.AddArc(160, 160, 40, 40, 0, 90) Path.AddArc(0, 160, 40, 40, 90, 90) Me.Region = New Region(regionPath)
Keep experimenting! - Johannes Hansen
-
This code will generate a rectangle(200x200) with rounded corners... Dim Path As New GraphicsPath Path.AddArc(0, 0, 40, 40, 180, 90) Path.AddArc(160, 0, 40, 40, -90, 90) Path.AddArc(160, 160, 40, 40, 0, 90) Path.AddArc(0, 160, 40, 40, 90, 90) Me.Region = New Region(regionPath)
Keep experimenting! - Johannes Hansen
-
Whoops regionPath is actually the variable Path of the type GraphicsPath... Sorry! ;)
Keep experimenting! - Johannes Hansen