Great job, but some improvement could be made like having a single method "loadPanel" to load whatever you want to load :D Here's what i've done. First, you define every form you want to load, within the class, instead of defining them at the "Click" method level. This way, each form keep their state (UNKNOWN asked for that 2 months ago). frmDashboard frmDashboardWindow = new frmDashboard() { Dock = DockStyle.Fill, TopLevel = false, TopMost = true }; frmSettings frmSettingsWindow = new frmSettings() { Dock = DockStyle.Fill, TopLevel = false, TopMost = true }; Then, define this method: private void loadPanel(string iTitle, System.Windows.Forms.Form iForm) { lblTitle.Text = iTitle; this.pnlFormLoader.Controls.Clear(); this.pnlFormLoader.Controls.Add(iForm); iForm.Show(); } Then in every Button Click method, just call it like this: loadPanel("Dashboard", frmDashboardWindow) or loadPanel("Settings", frmSettingsWindow)
well, could do even better. Just define a dictionnary of Forms, and have the title to be the key. private Dictionary screens = new Dictionary(); Populate the dictionary like this: screens.Add("Dashboard", new frmDashboard() { Dock = DockStyle.Fill, TopLevel = false, TopMost = true }); screens.Add("Settings", new frmSettings() { Dock = DockStyle.Fill, TopLevel = false, TopMost = true }); Add the first line to the loadPanel, and remove it's 2nd parameter: private void loadPanel(string iTitle) { System.Windows.Forms.Form iForm = screens[iTitle]; lblTitle.Text = iTitle; this.pnlFormLoader.Controls.Clear(); this.pnlFormLoader.Controls.Add(iForm); iForm.Show(); } then call it like this: loadPanel("Dashboard")
On your dashboard form, what control(s) or NuGet package do you recommend that can actually plot some meaningful graphs instead of just a picture control having a static image?
Because earler in the part 1 video there are no multiple forms were open so the back color changes when it was active. In this it forces on the multiple form thats why the back color dosent work
hey dude this doesnt work private void BtnCalender_Click(object sender, EventArgs e) { lblTitle.Text = "Calender"; this.PnlFormLoader.Controls.Clear(); frmCalender FrmDashboard_Vrb = new frmCalender() { Dock = DockStyle.Fill, TopLevel = false, TopMost = true }; FrmDashboard_Vrb.FormBorderStyle = FormBorderStyle.None; this.PnlFormLoader.Controls.Add(FrmDashboard_Vrb); FrmDashboard_Vrb.Show(); i did it and it doesnt redirect me to my form
@@CodeCraks no it is not working, the website is down and the Google drive link has been removed 😭 :( Please can you reupload to any other file sharing site like gofile or sql.gg and send again!! ❣️
Dude requires a sign up on his website to get the code, and then still doesnt let you download the code. Very scammy and looks like he is collecting email accounts.
Great Job! Your VDO help me a lot !
Great job, but some improvement could be made like having a single method "loadPanel" to load whatever you want to load :D
Here's what i've done.
First, you define every form you want to load, within the class, instead of defining them at the "Click" method level. This way, each form keep their state (UNKNOWN asked for that 2 months ago).
frmDashboard frmDashboardWindow = new frmDashboard() { Dock = DockStyle.Fill, TopLevel = false, TopMost = true };
frmSettings frmSettingsWindow = new frmSettings() { Dock = DockStyle.Fill, TopLevel = false, TopMost = true };
Then, define this method:
private void loadPanel(string iTitle, System.Windows.Forms.Form iForm)
{
lblTitle.Text = iTitle;
this.pnlFormLoader.Controls.Clear();
this.pnlFormLoader.Controls.Add(iForm);
iForm.Show();
}
Then in every Button Click method, just call it like this:
loadPanel("Dashboard", frmDashboardWindow)
or
loadPanel("Settings", frmSettingsWindow)
well, could do even better. Just define a dictionnary of Forms, and have the title to be the key.
private Dictionary screens = new Dictionary();
Populate the dictionary like this:
screens.Add("Dashboard", new frmDashboard() { Dock = DockStyle.Fill, TopLevel = false, TopMost = true });
screens.Add("Settings", new frmSettings() { Dock = DockStyle.Fill, TopLevel = false, TopMost = true });
Add the first line to the loadPanel, and remove it's 2nd parameter:
private void loadPanel(string iTitle)
{
System.Windows.Forms.Form iForm = screens[iTitle];
lblTitle.Text = iTitle;
this.pnlFormLoader.Controls.Clear();
this.pnlFormLoader.Controls.Add(iForm);
iForm.Show();
}
then call it like this:
loadPanel("Dashboard")
noice
very helpful and useful, thank you for uploading great content!
How do you make the form able to be dragged?
Great GUI design, but teaching people this much copy/paste is not good. Create common functions instead.
u old
Can u make a tutorial to make a few settings like dark/light mode or background music/login sound
Yeah Sure
make part 3 plz
Thx very much!
On your dashboard form, what control(s) or NuGet package do you recommend that can actually plot some meaningful graphs instead of just a picture control having a static image?
great👍
wow nice
Thanks
I can’t set rgb colors code or any combination on properties… do i need an extension or something else? I have just that three options… Thank u!
No
Hello, I have a problem with navigation menu: after adding formloader color of the button is missing, what can i to do?
Are you talking about the the menu buttons back color
Ist it possible to combine the register/login with the Gui ?
Possible but it will get more complicated
when i open the app the main frame doesnt open how can i fix this?
This might be an odd request but can you show/tell me how I can inject a Dll using this
Lookup manual mapping c# you'll find answers there...
Cheat dev detected.
Where i can get Icons pro-like :)
At freepik.com
When you click button there's no BackColor
Can you explain me why?
Btw. your videos are great :D
Because earler in the part 1 video there are no multiple forms were open so the back color changes when it was active. In this it forces on the multiple form thats why the back color dosent work
@@CodeCraks hey are you still here? I can't solve this problem, how can I fix this? thanks
can you make a vid on how like you can make a login page leading to the Dashboard page also like displaying the username on the username spot?
Can i will in the next video
@@CodeCraks O
PLS REUPLOAD THE PROJECT I CANT DOWNLOAD Googledrive says its Infected and only the admin can donwnload infected files pls reuploasd thx
Why can't I move mine around?
where is the Project files and Resources?
In the Description
My boards zooms in when I start the program. I can just see a half of the boards. Why?
Boards?
@@CodeCraks I fixed it
When you move to another form, the form is initialized.
I want to keep it in a state.
See my commetn if you haven't found the solution yet... but it was definitely an easy thing to find
I have problem with the From 4_vrb..... from boarderstyle= fromboarderstyle.none;
Check out the project files link given below in the description
hey dude this doesnt work private void BtnCalender_Click(object sender, EventArgs e)
{
lblTitle.Text = "Calender";
this.PnlFormLoader.Controls.Clear();
frmCalender FrmDashboard_Vrb = new frmCalender() { Dock = DockStyle.Fill, TopLevel = false, TopMost = true };
FrmDashboard_Vrb.FormBorderStyle = FormBorderStyle.None;
this.PnlFormLoader.Controls.Add(FrmDashboard_Vrb);
FrmDashboard_Vrb.Show();
i did it and it doesnt redirect me to my form
Download link don't working, please part2 download mega link.
It’s working
i keep having an ArgumentException when running the line "this.PnlFormLoader.Controls.Add..." any ideas how to troubleshoot this ?
can you do it in python?
Sry dude I’m still not good in python
hello can you please reupload source file
It’s totally working right the The source link. then why?
@@CodeCraks no it is not working, the website is down and the Google drive link has been removed 😭 :(
Please can you reupload to any other file sharing site like gofile or sql.gg and send again!! ❣️
@@CodeCraks it's not working please just reupload it
your website is not really working
the download does not work
Try again
@@CodeCraks i have they still dont work
@@CodeCraks the download does not work :c
You mean the source code file?
@@CodeCraks yes
Looks good but this has so many bad practices it's pretty sad
I always love people complaining but not giving their solution to a problem. So easy to drop a single Bomb like this :D Good job Sherlock
dear what is the password of zip file?
Linke dont working
What do you mean?
It's working
Does it show any error or broken link?
i cant move the window xD
xD?
@@CodeCraks linke the Gui frame its frozen
Check the from or components property (lock) set it to false
@@CodeCraks nope that dont worj,
I mean Like when you Test/start the Gui i cant move it with my mouse
Ya you should add a code to do that
The download for the source code is a virus.
yes its a virus
download link?
mega.nz/file/jYx1AALa#81Q_OapxP8tCcn-8Xpfi5PJgQ84nHcjNzqGLVVm7yRE
@@CodeCraks password
codecraks.com
Thank you so much
I cant really recommend this for learning anything in C# sadly.
Dude requires a sign up on his website to get the code, and then still doesnt let you download the code. Very scammy and looks like he is collecting email accounts.
Learn Xamarin
th-cam.com/play/PLcYfGPOcgilmKJHJ7OXM0c-79-ueBav_t.html