As someone pointed out, "this.mainpanel.controls.clear();" works better than "this.mainpanel.controls.RemoveAt(0);". Additionally you need to surround the whole loadform method in a try catch statement for it to work. Ex: public void loadform(object Form) { try { if (this.MainPanel.Controls.Count > 0) { this.MainPanel.Controls.Clear(); Form f = Form as Form; f.Dock = DockStyle.Fill; this.MainPanel.Controls.Add(f); this.MainPanel.Tag = f; f.Show(); } } catch { } } Hope this helps!
@jayjayc.marano4327Ай бұрын
sir can you tell me how do i load the dashboard form when the app begin to run
@neerajmehta11994 ай бұрын
Very beautiful. I appreciate you for your efforts and sharing this code with us. I am working on a huge application for my team and I am going to incorporate this design. Thanks again!!
@ElonMark5 ай бұрын
rijal
@warrenlucillo62306 ай бұрын
Amazing work
@jurajlovrovic6 ай бұрын
TY
@roychan024810 ай бұрын
Thank you so much ! Great work ! It save me a lot of coding time.
@nishadigunawardhane1819 Жыл бұрын
Thankyou soo much..finally i found it......❤❤
@eswaranpaneerselvam9883 Жыл бұрын
is it possible to retain the user inputs in the forms, it resets everywhere when the user moves to another form
@ruelandrew00 Жыл бұрын
is it possible to put passcode before it shown to the panel ?
Thank you so much! This tutorial is life-saving :-) Is it possible to get the same result AND have a resizable form? I added a snippet to the main form to be able to resize it. But the effect is gone after loading the inner forms. It would be cool to have an add-on tutorial about this 😀
@mdhasibulhasan8229 Жыл бұрын
Load multiple form in the panel using C++. Please help me
@imantw Жыл бұрын
I like the runtime because it can make it easier for the developer behind it. The runtime is also a bit of a hassle for the user because the user has to install the runtime to be able to run the program.
@hoang4092 Жыл бұрын
it's not work
@eachannelearn5811 Жыл бұрын
Maybe your just not doing it right ..can u show me the error?
@udomacha3286 Жыл бұрын
this.mainpanel.Controls.Clear() is better than this.mainpanel.Controls.RemoveAt(0) For the example in the video RemoveAt(0) works well but if you have more complicated Panel ...
@udomacha3286 Жыл бұрын
It seems the "Menu code" is missing in this video (?).
@ferdinan6366 Жыл бұрын
Can you expalin what it's collate sql latin1 general cpi cs as
@AlphaTechSolution Жыл бұрын
Thanks Sir, for sharing this informative video
@MyEdit365 Жыл бұрын
I got a warning for null literal on the Form f = Form as Form; Any solution
@Sara-bf9iq Жыл бұрын
Did you find any solution ?
@meowpow7522 Жыл бұрын
ty so much <3
@sireyyt27372 жыл бұрын
thanks man i already subscribe even if there is no explanation i get what i need base on your idea very helpful
@geanluis362 жыл бұрын
Does somebody when u try it and open a panel, it opens but when u go and try to close it doesn't close properly?
@eissejwilson65702 жыл бұрын
Saved my college final
@nakorns3202 жыл бұрын
Thank you for share the example of you
@ephemera7772 жыл бұрын
thank you for sharing this great knowledge
@mohamedshinan71322 жыл бұрын
thank you so much sir
@banbuengconnect2 жыл бұрын
I'm having an issue with Form in panal size when expanding Form Main.
@tj_enju2 жыл бұрын
Thanx a lot, it worked for me...
@jay-annoliveros53582 жыл бұрын
Hello, do you have a code using MySQL? instead of SQL Server?
@alvynlo2 жыл бұрын
Hi there are you able to share source code ?
@armaganarslan27022 жыл бұрын
Can i have your e-mail sir?
@bats.1k2 жыл бұрын
works man thank you
@kwsstaswestt2 жыл бұрын
mainpanel is not defined. how can i fix it?
@JayLaser2 жыл бұрын
its the panel that you want the forms to load on
@kevineppi81002 жыл бұрын
Nice Video, exactly what I needed, appriciat that :)
@analyzinggames86062 жыл бұрын
how do i add more buttons, when i try it just doesnt do anything but there are no errors any help?
@sunsetcake60882 жыл бұрын
Yeeaaah so here is the problem, its nice to see that the form loads up as normal... BUT it makes a memory leak. is there a way how to not make the function cause the memory leak? (and no Panel.controls.clear() does not work)
@eachannelearn58112 жыл бұрын
I already found a solution about that you can mail me so I can share it to you
@sunsetcake60882 жыл бұрын
@@eachannelearn5811 What is your email?
@ErenKaymakci-oj8mh6 ай бұрын
@@eachannelearn5811 If you solved that problem, Could you please share with me?
@programmer3132 жыл бұрын
When I run app the form is make big and not compatible with form how can fix that ?please
@eachannelearn58112 жыл бұрын
Check your anchor point
@foxitb12322 жыл бұрын
May God bless you, i finally got this part of my project done, thank you.
@programmer3132 жыл бұрын
Hi sir I have some problem when I write the correct username and password its show not correct I don't know why can you help me please? And I try to copy from table and past in textBox steal same problem
@asimashraf27162 жыл бұрын
Thanks man
@mickyclarkey2 жыл бұрын
in visual studio 2010 not working
@abdelfattahmohamed85102 жыл бұрын
plz accept my request to access drive
@jaderson-dsnaveia3 жыл бұрын
Great work. Reveal the aknowledge with the panels with a easy way. Thanks, was just in your channel that I found whats I was looking for.
@spongemusic93123 жыл бұрын
for me comes an error "The method or operation is not implemented."
@abidm553 жыл бұрын
Interesting informative video
@mohamedjoual34473 жыл бұрын
Amazing work. Thank u SO much. I was struggling to find out how to create a form inside of another one.