C# Tutorial-9 : Multiple pages on the Form using User Control | Dot Net Akadmy

  Рет қаралды 118,346

Learn With Umair

Learn With Umair

Күн бұрын

UserControls are the best and right way to create as many pages as you want in one window.

Пікірлер: 99
@suireyha
@suireyha 2 жыл бұрын
Seeing a tech tutorial without dubstep from 2012 is... confronting. Thanks for the video brother
@cabdiraxmaanyousuf6452
@cabdiraxmaanyousuf6452 2 жыл бұрын
Thnkz Pro I can't complete By words what you helped me 💟
@eamonburns9597
@eamonburns9597 Жыл бұрын
This was not what I was looking for, but I'm sure I'll use it eventually :)
@PNTDM
@PNTDM Жыл бұрын
This really help Thanks a lot
@lucassbersee
@lucassbersee Жыл бұрын
Thanks :)
@AbdulSamad-fs5is
@AbdulSamad-fs5is 3 жыл бұрын
Thanks man i was very confused while making my Student Management System Project
@brindayoudjeu7059
@brindayoudjeu7059 2 жыл бұрын
Thanks so much
@anmolsharma8830
@anmolsharma8830 3 жыл бұрын
What is the difference if i use panels instead of user control
@robbevanhoutte1862
@robbevanhoutte1862 4 жыл бұрын
Helped a lot man! Thanks for the video bro. You did a good job G
@clausleroyvierin3472
@clausleroyvierin3472 4 жыл бұрын
He did the best job ever dude!
@osempo
@osempo 5 жыл бұрын
Thanks a lot bro, you helped a lot with this video. Do you have a video showing how to actually close and open the pages? not just showing and hiding them. If so yo could help me a lot more. Keep the good work!
@umairsolutions
@umairsolutions 5 жыл бұрын
Thanks for your Feedback, What you are looking for can be done with winform forms. Go to your project and right click on it, then click Add, now add windows form. Say you have two forms form1 and form2. // It will show form1 and you can close it, minimize it, maximize it. this.hide() // hides the current form form1 frm=new form1(); frm.showDialogue(); // It will show second form2 and you can close it, minimize it, maximize it. this.hide() // hides the current form form2 frm2=new form2(); frm2.showDialogue();
@osempo
@osempo 5 жыл бұрын
Do i have to do the rebuild with the forms and then add them as you aded the user controls?
@umairsolutions
@umairsolutions 5 жыл бұрын
No, forms are different from user controols. They will simply added when you right click on your project, click on add, click on windows form application and give name of your form then click add. You can see your added form in the Solution Explorer.
@_sl1de_
@_sl1de_ 3 жыл бұрын
Exactly what i was looking for
@saihajmann6622
@saihajmann6622 Жыл бұрын
Very helpful, thank you😀
@pumpkinjack1089
@pumpkinjack1089 2 жыл бұрын
Thank you so much this helped me understand user control
@sometrioeng2602
@sometrioeng2602 Жыл бұрын
thanks for 'UserControl'
@muhammadhabibalkhairi7946
@muhammadhabibalkhairi7946 3 жыл бұрын
Thank you for the tutorial, this really help me.
@rjevangelista9769
@rjevangelista9769 5 жыл бұрын
Instead of hiding/showing the control. It would be better if you create the instance of the user control programmatically. createInstance(Control module) { var controls = pnlContainer.Controls.ofType(UserControl).ToList(); foreach(var control of controls) { control.Dispose(); } pnlContainer.Controls.Add(module); module.Dock = DockStyle.Fill; } button1_Clicked(Object sender, EventArgs e) { createInstance(new HomeUserControl()); } button2_Clicked(Object sender, EventArgs e) { createInstance(new ManageUserControl()); } button3_Clicked(Object sender, EventArgs e) { createInstance(new SettingUserControl()); }
@kushal6065
@kushal6065 Жыл бұрын
thanks
@shaikkausar8915
@shaikkausar8915 2 жыл бұрын
can i rebuild the project in visual studio 2010....if so plz tel meh?????
@micahjaredpaguinto398
@micahjaredpaguinto398 5 ай бұрын
thank u boss! nice tutorial
@dimitriskosse1727
@dimitriskosse1727 2 жыл бұрын
Thanks a lot bro! 👍👍👍👏👏👏👏
@sava443
@sava443 3 жыл бұрын
i got error Severity Code Description Project File Line Suppression State Error CS0120 An object reference is required for the non-static field, method, or property 'Control.Hide()'
@vorapobautomation9760
@vorapobautomation9760 3 ай бұрын
How to make main page as template ?
@talesfromdahood
@talesfromdahood Жыл бұрын
Thank you man! - unexperienced guy, me.
@mehrdadakbari1721
@mehrdadakbari1721 2 жыл бұрын
This could work for small appliances but if you had 20 pages on one window application become very slow and take a lot of ram
@Extravi
@Extravi 2 жыл бұрын
Thanks
@collins4013
@collins4013 5 жыл бұрын
Hi thanks for the video just one question am getting an error cs0117 where it's saying that usercontrol does not contain a definition for hide what might be the problem please help
@chudisoftdev
@chudisoftdev 5 жыл бұрын
Collins Kiunjuri80 Check for other possible options by typing the name of the user control and adding a dot at the end (usercontrol1.) Use the suggestions to help yourself. Check others like visible. Thanks
@chudisoftdev
@chudisoftdev 5 жыл бұрын
Collins Kiunjuri80 kzbin.info/www/bejne/hquzq3uLjs9nfJY Explains better for visual studio 2019
@___-_-_-_-_-_-_-_-_-___
@___-_-_-_-_-_-_-_-_-___ 5 жыл бұрын
@@chudisoftdev so spam... btw that video really sucks!
@doreenchemweno
@doreenchemweno 4 жыл бұрын
@@chudisoftdev Daamn thanks. Quite helpful
@mosqali1970
@mosqali1970 2 жыл бұрын
why i cant find other usercontrols from toolbox?
@KillBill01
@KillBill01 3 жыл бұрын
it work on visual studio 2012 ultimate ?
@naseefvpo9976
@naseefvpo9976 3 жыл бұрын
Thanks a lot..
@z_tock
@z_tock 2 жыл бұрын
Instead of using .Show(); And .Hide(); Use .BringToFront(); its more simple unless you need to use those functions instead.
@yuwenlilyhua4262
@yuwenlilyhua4262 5 жыл бұрын
Is there a way to do this but by clicking a cell of a specific column on a gridview instead just a button on the form?
@abdullatheefthiyyattil1675
@abdullatheefthiyyattil1675 4 жыл бұрын
yes\
@sujendrakr.kachhap5436
@sujendrakr.kachhap5436 4 жыл бұрын
How to save data of all these multiple page by using save button in main form please reply me . How should i do
@MegasXLR
@MegasXLR 4 жыл бұрын
Thanks for this, really helped me with my project :)
@rogertrace4105
@rogertrace4105 3 жыл бұрын
Sorry to be off topic but does any of you know of a method to get back into an instagram account?? I was stupid forgot my login password. I would love any assistance you can offer me
@jamisondangelo8829
@jamisondangelo8829 3 жыл бұрын
@Roger Trace instablaster =)
@rogertrace4105
@rogertrace4105 3 жыл бұрын
@Jamison Dangelo i really appreciate your reply. I got to the site thru google and im waiting for the hacking stuff now. Looks like it's gonna take quite some time so I will get back to you later when my account password hopefully is recovered.
@rogertrace4105
@rogertrace4105 3 жыл бұрын
@Jamison Dangelo It did the trick and I actually got access to my account again. Im so happy! Thank you so much, you saved my account :D
@jamisondangelo8829
@jamisondangelo8829 3 жыл бұрын
@Roger Trace You are welcome :)
@FlexZone100
@FlexZone100 3 жыл бұрын
Thank you so much man! Worked very well. Btw your channel name is spelt wrong lol.
@dunayqudretli3382
@dunayqudretli3382 3 жыл бұрын
Thank you man 👍🏻
@muhammadkathrada8438
@muhammadkathrada8438 4 жыл бұрын
I need help with some coding. Can I email you my work?
@misteraxolotl
@misteraxolotl 3 жыл бұрын
Why when I write "Hide", "Show" and "BringToFrond" I get an error like "does not contain a definition for" ? Please help me
@sarahdadoun6864
@sarahdadoun6864 3 жыл бұрын
you need control reference I think. something Like that. make sure you are using windows form app .NET framework
@sylvesteryap
@sylvesteryap 4 жыл бұрын
When I changing the size or maximize the windows form, the users form doesn't follow. is there any help for this problem?
@suxufinimcaancabdi9434
@suxufinimcaancabdi9434 5 жыл бұрын
THanks for the video go forward
@clementguiguet938
@clementguiguet938 3 жыл бұрын
hey, can we put a button in a user control and check if this button is press in the main form ?
@EyeOfCthuIhu
@EyeOfCthuIhu 5 ай бұрын
You can make public event in user control and subscribe to it in main form
@kentlloydjavier4602
@kentlloydjavier4602 10 ай бұрын
Thanks!
@Cipkia987
@Cipkia987 4 жыл бұрын
Helped a lot thx!
@hafizoktri3847
@hafizoktri3847 6 жыл бұрын
what would happen if I didn't rebuild the project after creating a UserControl?
@umairsolutions
@umairsolutions 6 жыл бұрын
If you did not rebuild, UserControl will not be added in the toolbox. If your usercontrol is not in toolbox, then how can you use it??
@audit2901
@audit2901 5 жыл бұрын
Awais Mehmood.
@nhopnhap8653
@nhopnhap8653 3 жыл бұрын
thanks a lot
@abolfazl2255
@abolfazl2255 5 жыл бұрын
Help! it says Usercontrol1 is never assigned to, and will always have its default value null
@umairsolutions
@umairsolutions 5 жыл бұрын
Its not an error, its warning. When you use your Usercontrol1 on your form, then this warning will disappear.
@TheUofastudent
@TheUofastudent 5 жыл бұрын
Can you show example of how we would access text boxes in user controls? Having difficulty with that
@chudisoftdev
@chudisoftdev 5 жыл бұрын
ThePaintPro check this kzbin.info/www/bejne/hquzq3uLjs9nfJY
@bernardcorpinjr.8754
@bernardcorpinjr.8754 4 жыл бұрын
need help. why i need to double tap or click the button before it show?
@Serratsparkwos
@Serratsparkwos 3 жыл бұрын
Because, i think you used the double-click event, look for the one click event.
@matheuscastro271
@matheuscastro271 3 жыл бұрын
thank you
@prod._ak
@prod._ak 3 жыл бұрын
Dude i have a problem when I can't find my usercontrols in the toolbox ;c
@yusof5020
@yusof5020 3 жыл бұрын
make sure to build the project
@yusof5020
@yusof5020 3 жыл бұрын
and you should see it
@Adnan-ft8oh
@Adnan-ft8oh 3 жыл бұрын
stackoverflow.com/questions/3446429/how-to-put-a-usercontrol-into-visual-studio-toolbox
@firdaushafizi7408
@firdaushafizi7408 4 жыл бұрын
can't do this in vs 2017. usercontrol need to have object declared first. but when object is declared, it still not working
@doreenchemweno
@doreenchemweno 4 жыл бұрын
Were you able to find the solution?
@thanisahamed1254
@thanisahamed1254 4 жыл бұрын
thanks
@FaheemSRILANKA
@FaheemSRILANKA 6 жыл бұрын
pls tell me how to refresh the user control ?? .. i need to restart the application to refresh :/ .. is there any way to do it whenever we open user control ... to do auto refresh
@umairsolutions
@umairsolutions 6 жыл бұрын
Rebuild your project, it will refresh automatically..
@fgteevroblox3641
@fgteevroblox3641 5 жыл бұрын
wow thanks man its work
@umairsolutions
@umairsolutions 5 жыл бұрын
You are Welcome!... Stay connected with us.
@aaliyajaved4316
@aaliyajaved4316 4 жыл бұрын
thankxx mann
@martinekmarik1526
@martinekmarik1526 4 жыл бұрын
thx
@chaliiid
@chaliiid 5 жыл бұрын
Really..
@ronellorico706
@ronellorico706 5 жыл бұрын
After i rebuilt it i cant see my usercontrol in my toolbox help me
@chudisoftdev
@chudisoftdev 5 жыл бұрын
Ronel Lorico check this out kzbin.info/www/bejne/hquzq3uLjs9nfJY
@anarchist6204
@anarchist6204 4 жыл бұрын
tysm
@sparky9705
@sparky9705 4 жыл бұрын
You spelt 'Academy' wrong in your name.
@renantomisaki1516
@renantomisaki1516 4 жыл бұрын
You spelled 'spelled' wrong in your comment.
@sparky9705
@sparky9705 4 жыл бұрын
@@renantomisaki1516 That's because not everyone in the world lives in America.
@marjo9952
@marjo9952 4 жыл бұрын
@@sparky9705 Doesn't that apply to him as well?
@sparky9705
@sparky9705 4 жыл бұрын
@@marjo9952 There are two things I know in this world, one of them is that 'Academy' is spelt incorrectly in this guy's channel name by the standards of any country in the world and the other is that Renan Tomisaki's brain needs immediate medical intervention to treat the deformities causing him to be so utterly retarded and autistic that everyone in his life hates him and wishes he would move to Afghanistan.
@crec11254
@crec11254 4 жыл бұрын
what the fuck i cant see them in toolbox
@exogendesign4582
@exogendesign4582 2 жыл бұрын
Such an ugly work. Hiding/Showing Control won't update the control and only create unnecessary memory from multiple control drawing together. You should use offtype and unload them when not in used. This way you are validating any update if those user control has dynamic data and at the same time keeping the memory as optimal as possible.
C# Tutorial-7 : Message Box
10:04
Learn With Umair
Рет қаралды 1,1 М.
C# WPF and GUI - Pages and Navigation
7:48
Ilford Grammar School
Рет қаралды 283 М.
СОБАКА ВЕРНУЛА ТАБАЛАПКИ😱#shorts
00:25
INNA SERG
Рет қаралды 1,8 МЛН
My Height vs MrBeast Crew 🙈📏
00:22
Celine Dept
Рет қаралды 107 МЛН
Миллионер | 2 - серия
16:04
Million Show
Рет қаралды 1,9 МЛН
C# CustomList Using UserControl And FlowLayoutPanel
21:37
Chieng
Рет қаралды 120 М.
.NET and C# are in trouble. Here is what I'd do.
10:57
Ed Andersen
Рет қаралды 93 М.
I Tried Real Augmented Reality Glasses!
20:29
Marques Brownlee
Рет қаралды 3,9 МЛН
Create Custom Tabs using User Controls in Visual C#
10:44
C# Ui Academy
Рет қаралды 150 М.
Load multiple form in the panel using c#.net Tutorial for beginners
9:25
Windows Forms Applications - Create and Use Multiple Forms
24:55
Industrial IT and Automation
Рет қаралды 13 М.
How to Access Form Controls From User Control | C# Winforms
9:49
Multi forms in one panel vb.Net
5:28
phy234
Рет қаралды 75 М.
СОБАКА ВЕРНУЛА ТАБАЛАПКИ😱#shorts
00:25
INNA SERG
Рет қаралды 1,8 МЛН