C# - DropDown Panel in Windows Form Application C#
Vložit
- čas přidán 26. 07. 2024
- Hello Friends, This is SaLaaR HuSyN, in this very Quick tutorial we'll learn how to design a custom dropdown menu using Panel in windows form application C#.
Download Source Code:
github.com/SaLaaRHuSyN/DropDo...
++++++++++++++++++++++++++++++++++++++++++++
For Android Ui Tutorials, Please Subscribe Our Channel Android Ui Academy:
/ @androiduiacademy6689
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
if You Have any Query, feel free to contact Us on Facebook:
/ csharpuiacademy
++++++++++++++++++++++++++++++++++++++++++++
Please Subscribe for more Videos. - Věda a technologie
thanks a lot, still saving projects in 2019!! ; )
Just what i was looking for! Thank you!
Thank You for the excellent solution. I'm going to use this method in my project! Thanks a lot again
what a mind bro, amazing, keep it up Salaar HusYn
Just what I needed. Thanks!
uhhh nice, will try that one out :D
Outstanding bro keep it up
That was so cool!
Thanks bro. You have helped much
Very good! Thanks for your help man!
Nice example. Thanks
Thank You Brother.
Thanks you bro!
Many usefull.
Great thanks!
ma sha Allah zabardast bro
Excelente solución en C#. ;-)
thanks for this man,..keep it up..
Superb bro
thank you very much.
Thanks a lot
👍👏
Very Nice
amazing!!!
Thanks, this really helped :-)
Thank you so so much
thanks a lot ..
I like It
A simple but effective solution!, thank you so much!.
Glad it helped!
Thanks
Brief and clear, thanks a lot, and really, the sound is also good, let me know the name of music :)
Thank you so much for this! Question, how do you code it when you want to have multiple dropdown panels underneath each other that close when you open a new one?
Did you find a solution to this?
thank you very much that helps L))
que massa.
gostei.
Cool ¡¡
So Cool ...----------> Thanks
thanks for the tutorial. this is very useful and works. but when the menu goes down. the buttons at the bottom are hidden, covered by the drop menu. how do you solve it?
Could you make video about form responsive with screen.
Just what I was looking for, but if each button represents a form how do I get the text of the form name to be seen.
What is the best way to open a new form and close the current?
Thanks, but how can i do for 2 o more panels?
how to make this dropdown dynamic? add a dropdown button every time a user adds an item in the database.
Thank you for this video, help a lot ♥️ but one more thing, how can I display another user control when clicking the button in the drop down panel? Pls reply, I need ur help😭 - it's okay, already can XD
during form designing (before reducing the size of Sub Panel), just code to display user control on your form... :) :) please let me know if you have any query... thanks for watching my videos... :)
@@CUiAcademy Thank you 🥰
but ty for idea
Why the button10.11.12 won't cover the DropDown Panel?They will move when the Panel Drop.Want to know~Thanks for help.
what is isCollapsed and i have done each nd everything same except that arrow sign so where i should write timer1.start(); plx rep thanks
Hi Hamza,... isCollapsed is a bool variable which we've declared earlier, It will become true when the panel is collapsed..
dude can u explain about ur code i wanna get it ty so much
what if I want a dropdown panel inside a dropdown panel?
bro my problem shows a collapsed arrow image add plz help me
sir agr sabhi batton me, button 5 jaisa krna ho to kya kre
no Download link on the description 😞
Can I use 2 timers in one form? I am actually using but i have a crash I don't know why...Can you help me ?
By the way thanks a lot for this solution!
Hi Erlind, Please explain your problem by writing an email to info@csharpui.com. I'll try my best to solve your problem.. :)
@@CUiAcademy I fixed the problem, it was crashing between timers :'D thanks for caring...
can you send me the link of your project pls!!
nice video bro!
Please download the source code from this link.. github.com/SaLaaRHuSyN/DropDownPanel
how the panel is closed automatically when opening any other panel.. Plz Help
what if i have to add more than 100 buttons,,please help
my dropdown panel is overlapping on the other button what should i do?
Hi Sara Rana. Please use Flowlayout Panel for your Container (Main Panel). I hope this will work for you.. :)
@@CUiAcademy Is there a way to make the other buttons drop down on a regular Panel?
how to do this with 2 dropdowns?
Error at statement - panelDropDown.Height += 10;
Error msg - Invalid expression term and panelDropdown does not exist in the current context
panelDropDown is the name of the panel which contains your button.... just rename that panel or replace panelDropDown with its name,,, :)
Thank you so much, finally I executed program. once again thank you so much for your reply c# UI academy
It works. Fast time click the button drop down. but how the panel is closed automatically when i click another button.
#SaLaaR_HuSceyN
simple.. Just check the height of panel dropdown and if its width is greater then call the on click event of ButtonCollapse like,
if(panelDropDown.Height < 0)
{
ButtonCollapse.OnClick(sender,e);
}
it will close the drop down panel if it is already opened..
Change the 0 inside the if condition with the minimum height which you set for the panel dropdown. :) I hope it will work for you.. :)
@@CUiAcademy Sorry for that it's not working.
private void tmr1_stp_dd_tick(object sender, EventArgs e)
{
if (isCollapsed)
{
pnl_stp_dd.Height += 10;
if (pnl_stp_dd.Size == pnl_stp_dd.MaximumSize)
{
tmr1_stp_dd.Stop();
isCollapsed = false;
}
}
else
{
pnl_stp_dd.Height -= 0;
if (pnl_stp_dd.Size == pnl_stp_dd.MinimumSize)
{
tmr1_stp_dd.Stop();
isCollapsed = true;
}
}
}
::or::
private void stp_btn_click(object sender, EventArgs e)
{
tmr1_stp_dd.Start();
}
if(pnl_stp_dd.Height < 0)
{
ButtonCollapse.OnClick(sender,e);
}
the menu wont drop down at all for me
I can only close it i cant opne it
I’m getting error. Anybody can help me ?
How to do this same thins in visual basic??
Please help me
Please help me
It wont come up again .-..
help
Download Link Missing/Reup?^^
Im still asking myself: why do you refresh your desktop at every start of an video 😅
The reason behind this is very simple, many viewers just ask about, which version of visual studio that I am using in this video, because some techniques don't work in older versions... So I start my every video from scratch...
@@CUiAcademy Ok ^^ Thank you for your fast answer :D
Please continue with this content
Inertia minecraft client? :'D
private void timer1_Tick(object sender, EventArgs e)
{
if (isCollapsed)
{
button5.Image = Resources.bt_dw1;
panelDropDown.Height -= 10;
if (panelDropDown.Size == panelDropDown.MinimumSize)
{
timer1.Stop();
isCollapsed = false;
}
}
else
{
button5.Image = Resources.bt_up1;
panelDropDown.Height += 10;
if (panelDropDown.Size == panelDropDown.MaximumSize)
{
timer1.Stop();
isCollapsed = true;
}
PQP, nao tava funcionando porque troquei digitei "+=" ao inves de "-+"!!! kkkkkk