0
Opa
I have a function for opening photons inside a general container.
Function carrega_form(ByRef ctl As Control, ByRef frm As Form)
If ctl IsNot Nothing AndAlso frm IsNot Nothing Then
frm.TopLevel = False
frm.FormBorderStyle = FormBorderStyle.None
frm.Dock = DockStyle.Fill
frm.Visible = True
ctl.Controls.Add(frm)
End If
End Function
To call it use:
carrega_form(container, New frm_content_cadastro_botoes)
Password that the container
is in a main form, what I have to do is just load other Forms inside this container, the problem is that it occurs only once, ie when executing the form function is opened, but when executing again nothing happens.
I tried before calling use function: Me.hide
, but, still does not call the form as it should.
Using the call to different containers works.
The container object is a Panel