I'm in doubt here, I do not know much about it.
1 I was using a form
only, with several panel
hidden inside it, and when the user clicked on any option in menuStrip
I manipulated the Enabled
and Visible
properties % of the corresponding panels. But it was bugging, the database was not writing the typed content.
2 I tried using splitContainer
, but it still has a bug, it does not save, but it takes too long to get the form and to save. I tried the code:
splitContainer1.Panel2.Controls.Clear(); // limpa o painel2
nvCli.TopLevel = false; // não alinha ao topo
nvCli.AutoScroll = true; // exibe barra de rolagem automaticamente
splitContainer1.Panel2.Controls.Add(nvCli); //add formulario ao painel 2
nvCli.Show(); // mostra formulario
Where nvCli
is a static instance and publishes from another form.
Another problem here is that the form was not being displayed in the center of panel2
, it was getting crooked.
Would you like to know if there is another better way to view or fix bugs?
Interface layout (yes, I did it in paint kk)