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

Sdílet
Vložit
  • čas přidán 7. 04. 2018
  • UserControls are the best and right way to create as many pages as you want in one window.

Komentáře • 98

  • @robbevanhoutte1862
    @robbevanhoutte1862 Před 4 lety +1

    Helped a lot man! Thanks for the video bro. You did a good job G

  • @eamonburns9597
    @eamonburns9597 Před rokem +1

    This was not what I was looking for, but I'm sure I'll use it eventually :)

  • @suireyha
    @suireyha Před 2 lety

    Seeing a tech tutorial without dubstep from 2012 is... confronting.
    Thanks for the video brother

  • @cabdiraxmaanyousuf6452
    @cabdiraxmaanyousuf6452 Před 2 lety +1

    Thnkz Pro I can't complete By words what you helped me 💟

  • @AbdulSamad-fs5is
    @AbdulSamad-fs5is Před 2 lety +1

    Thanks man i was very confused while making my Student Management System Project

  • @muhammadhabibalkhairi7946

    Thank you for the tutorial, this really help me.

  • @anmolsharma8830
    @anmolsharma8830 Před 3 lety +2

    What is the difference if i use panels instead of user control

  • @_sl1de_
    @_sl1de_ Před 2 lety

    Exactly what i was looking for

  • @pumpkinjack1089
    @pumpkinjack1089 Před 2 lety

    Thank you so much this helped me understand user control

  • @sylvesteryap
    @sylvesteryap Před 4 lety

    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 Před 5 lety +1

    THanks for the video go forward

  • @Cipkia987
    @Cipkia987 Před 4 lety

    Helped a lot thx!

  • @micahjaredpaguinto398
    @micahjaredpaguinto398 Před 2 měsíci

    thank u boss! nice tutorial

  • @dunayqudretli3382
    @dunayqudretli3382 Před 3 lety

    Thank you man 👍🏻

  • @dimitriskosse1727
    @dimitriskosse1727 Před 2 lety

    Thanks a lot bro!
    👍👍👍👏👏👏👏

  • @MegasXLR
    @MegasXLR Před 4 lety +1

    Thanks for this, really helped me with my project :)

    • @rogertrace4105
      @rogertrace4105 Před 2 lety

      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 Před 2 lety

      @Roger Trace instablaster =)

    • @rogertrace4105
      @rogertrace4105 Před 2 lety

      @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 Před 2 lety

      @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 Před 2 lety

      @Roger Trace You are welcome :)

  • @KillBill01
    @KillBill01 Před 3 lety

    it work on visual studio 2012 ultimate ?

  • @lucassbersee
    @lucassbersee Před rokem +1

    Thanks :)

  • @shaikkausar8915
    @shaikkausar8915 Před 2 lety

    can i rebuild the project in visual studio 2010....if so plz tel meh?????

  • @osempo
    @osempo Před 5 lety +2

    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  Před 5 lety +3

      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 Před 5 lety

      Do i have to do the rebuild with the forms and then add them as you aded the user controls?

    • @umairsolutions
      @umairsolutions  Před 5 lety

      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.

  • @kentlloydjavier4602
    @kentlloydjavier4602 Před 7 měsíci

    Thanks!

  • @PNTDM
    @PNTDM Před 10 měsíci +1

    This really help
    Thanks a lot

  • @sujendrakr.kachhap5436

    How to save data of all these multiple page by using save button in main form please reply me . How should i do

  • @saihajmann6622
    @saihajmann6622 Před rokem

    Very helpful, thank you😀

  • @yuwenlilyhua4262
    @yuwenlilyhua4262 Před 4 lety +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?

  • @brindayoudjeu7059
    @brindayoudjeu7059 Před 2 lety +1

    Thanks so much

  • @martinekmarik1526
    @martinekmarik1526 Před 4 lety +2

    thx

  • @collins4013
    @collins4013 Před 5 lety +4

    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 Před 4 lety +1

      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 Před 4 lety +1

      Collins Kiunjuri80 czcams.com/video/PzPzHUYj4F4/video.html
      Explains better for visual studio 2019

    • @___-_-_-_-_-_-_-_-_-___
      @___-_-_-_-_-_-_-_-_-___ Před 4 lety

      @@chudisoftdev so spam... btw that video really sucks!

    • @doreenchemweno
      @doreenchemweno Před 4 lety

      @@chudisoftdev Daamn thanks. Quite helpful

  • @mosqali1970
    @mosqali1970 Před 2 lety

    why i cant find other usercontrols from toolbox?

  • @naseefvpo9976
    @naseefvpo9976 Před 3 lety +1

    Thanks a lot..

  • @hafizoktri3847
    @hafizoktri3847 Před 5 lety +1

    what would happen if I didn't rebuild the project after creating a UserControl?

    • @umairsolutions
      @umairsolutions  Před 5 lety

      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??

  • @Extravi
    @Extravi Před 2 lety

    Thanks

  • @muhammadkathrada8438
    @muhammadkathrada8438 Před 3 lety +1

    I need help with some coding. Can I email you my work?

  • @sava443
    @sava443 Před 3 lety

    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()'

  • @nhopnhap8653
    @nhopnhap8653 Před 3 lety

    thanks a lot

  • @abolfazl2255
    @abolfazl2255 Před 5 lety +1

    Help! it says Usercontrol1 is never assigned to, and will always have its default value null

    • @umairsolutions
      @umairsolutions  Před 5 lety

      Its not an error, its warning. When you use your Usercontrol1 on your form, then this warning will disappear.

  • @clementguiguet938
    @clementguiguet938 Před 3 lety

    hey, can we put a button in a user control and check if this button is press in the main form ?

    • @EyeOfCthuIhu
      @EyeOfCthuIhu Před 2 měsíci

      You can make public event in user control and subscribe to it in main form

  • @aaliyajaved4316
    @aaliyajaved4316 Před 4 lety

    thankxx mann

  • @matheuscastro271
    @matheuscastro271 Před 3 lety

    thank you

  • @fgteevroblox3641
    @fgteevroblox3641 Před 5 lety

    wow thanks man its work

  • @sometrioeng2602
    @sometrioeng2602 Před rokem

    thanks for 'UserControl'

  • @mehrdadakbari1721
    @mehrdadakbari1721 Před 2 lety

    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

  • @audit2901
    @audit2901 Před 5 lety +2

    Awais Mehmood.

  • @thanisahamed1254
    @thanisahamed1254 Před 3 lety

    thanks

  • @talesfromdahood
    @talesfromdahood Před rokem

    Thank you man! - unexperienced guy, me.

  • @bernardcorpinjr.8754
    @bernardcorpinjr.8754 Před 4 lety

    need help. why i need to double tap or click the button before it show?

    • @Serratsparkwos
      @Serratsparkwos Před 3 lety

      Because, i think you used the double-click event, look for the one click event.

  • @misteraxolotl
    @misteraxolotl Před 3 lety

    Why when I write "Hide", "Show" and "BringToFrond" I get an error like "does not contain a definition for" ? Please help me

    • @sarahdadoun6864
      @sarahdadoun6864 Před 3 lety

      you need control reference I think. something Like that. make sure you are using windows form app .NET framework

  • @anarchist6204
    @anarchist6204 Před 3 lety

    tysm

  • @TheUofastudent
    @TheUofastudent Před 4 lety +1

    Can you show example of how we would access text boxes in user controls? Having difficulty with that

    • @chudisoftdev
      @chudisoftdev Před 4 lety

      ThePaintPro check this czcams.com/video/PzPzHUYj4F4/video.html

  • @FlexZone100
    @FlexZone100 Před 3 lety +2

    Thank you so much man! Worked very well. Btw your channel name is spelt wrong lol.

  • @FaheemSRILANKA
    @FaheemSRILANKA Před 5 lety +1

    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  Před 5 lety

      Rebuild your project, it will refresh automatically..

  • @chaliiid
    @chaliiid Před 5 lety +1

    Really..

  • @z_tock
    @z_tock Před rokem +1

    Instead of using .Show(); And .Hide(); Use .BringToFront(); its more simple unless you need to use those functions instead.

  • @firdaushafizi7408
    @firdaushafizi7408 Před 4 lety +1

    can't do this in vs 2017. usercontrol need to have object declared first. but when object is declared, it still not working

  • @ronellorico706
    @ronellorico706 Před 5 lety +1

    After i rebuilt it i cant see my usercontrol in my toolbox help me

    • @chudisoftdev
      @chudisoftdev Před 4 lety

      Ronel Lorico check this out czcams.com/video/PzPzHUYj4F4/video.html

  • @prod._ak
    @prod._ak Před 3 lety

    Dude i have a problem when I can't find my usercontrols in the toolbox ;c

    • @yusof5020
      @yusof5020 Před 3 lety

      make sure to build the project

    • @yusof5020
      @yusof5020 Před 3 lety

      and you should see it

    • @Adnan-ft8oh
      @Adnan-ft8oh Před 3 lety

      stackoverflow.com/questions/3446429/how-to-put-a-usercontrol-into-visual-studio-toolbox

  • @rjevangelista9769
    @rjevangelista9769 Před 5 lety +9

    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());
    }

  • @crec11254
    @crec11254 Před 4 lety

    what the fuck i cant see them in toolbox

  • @sparky9705
    @sparky9705 Před 4 lety +1

    You spelt 'Academy' wrong in your name.

    • @renantomisaki1516
      @renantomisaki1516 Před 3 lety

      You spelled 'spelled' wrong in your comment.

    • @sparky9705
      @sparky9705 Před 3 lety

      @@renantomisaki1516 That's because not everyone in the world lives in America.

    • @marjo9952
      @marjo9952 Před 3 lety +1

      @@sparky9705 Doesn't that apply to him as well?

    • @sparky9705
      @sparky9705 Před 3 lety

      @@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.

  • @exogendesign4582
    @exogendesign4582 Před 2 lety

    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.