1
I’m in doubt here, I don’t know much about it.
1 I was wearing a form
only, with several panel
hidden within it, and when the user clicked on some option in the menuStrip
I manipulated the properties Enabled
and Visible
of the corresponding panels. However, the database was not recording the typed content.
2 I tried using splitContainer
, but still bug, not to save, but it takes a long time to get the form and to save. I tried with 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 and public instance of another form.
Another problem here is that the form was not being displayed in the center of the panel2
, was getting bent.
I was wondering if there is a better way to display or how to solve the bugs?
Interface layout (yes, I did in Paint kk)
For that I was using the panel, to 'group' these elements... I am now using slipContainer, because it was the option that I found more ideal (I solved the bugs that happened)
– Leonardo