Αfter some tests I managed to solved it. Into
UserControl
's
Load
event (where
ParentForm
is acceptable), I check first if
UserControl
is in
DesignMode
(else user will gets messages everytime application starts) and then, if
ParentForm
is not
FormBorderStyle.None
, user informed by a
MessageBox
.
Private Sub UserControl_Load(sender As Object, e As EventArgs) Handles MyBase.Load
If Not Site Is Nothing AndAlso Site.DesignMode Then
If Not ParentForm.FormBorderStyle = FormBorderStyle.None Then
MsgBox("Blah blah blah...")
End If
End If
End Sub