I'm trying to make all the forms in an existing project (more than 100 forms) look rectangular instead of having circular corner. they all inherit from a customized form. For that my plan is to change the region of the custom form
Private Sub frx_Paint(sender As Object, e As PaintEventArgs) Handles Me.Paint
Using opath As New Drawing2D.GraphicsPath()
Me.Region = New Region(opath)
Some forms are instantiated more than once, the first instance shows correctly, but the second does not show at all.
Attached is a sample project that shows the behavior. if you click on the button "show form" it shows the form, when you click on the button a second time, the form doesn't show.