Is it possible to create a dashed border around WinForm's panel control in vb.net

Hakan
Hakan used Ask the Experts™
on
I'd like to create a dashed border with some radius on corners like picture below. I'd like to use this panel with DragDrop feature.

indir.png
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
It will be the same as creating a shaped windows form
Here is an article on that topic
https://docs.microsoft.com/en-us/dotnet/framework/winforms/advanced/how-to-create-a-shaped-windows-form

Hirendra Sisodiya created some useful examples in his article:
create-windows-forms-in-any-shape-in-vb-net/

Once you set the region (Me.Region = New System.Drawing.Region(Tempshape)) You can redraw the dotted shape on top of it  or set a bmp as background image of your form, set the transparencykey property of your form to the background color of your bitmap.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial