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

Поделиться
HTML-код
  • Опубликовано: 11 дек 2024

Комментарии • 99

  • @suireyha
    @suireyha 2 года назад

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

  • @cabdiraxmaanyousuf6452
    @cabdiraxmaanyousuf6452 3 года назад +1

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

  • @anmolsharma8830
    @anmolsharma8830 3 года назад +3

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

  • @eamonburns9597
    @eamonburns9597 2 года назад +1

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

  • @lucassbersee
    @lucassbersee Год назад +1

    Thanks :)

  • @PNTDM
    @PNTDM Год назад +1

    This really help
    Thanks a lot

  • @AbdulSamad-fs5is
    @AbdulSamad-fs5is 3 года назад +1

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

  • @shaikkausar8915
    @shaikkausar8915 2 года назад

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

  • @robbevanhoutte1862
    @robbevanhoutte1862 4 года назад +1

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

  • @collins4013
    @collins4013 5 лет назад +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 5 лет назад +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 5 лет назад +1

      Collins Kiunjuri80 ruclips.net/video/PzPzHUYj4F4/видео.html
      Explains better for visual studio 2019

    • @___-_-_-_-_-_-_-_-_-___
      @___-_-_-_-_-_-_-_-_-___ 5 лет назад

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

    • @doreenchemweno
      @doreenchemweno 4 года назад

      @@chudisoftdev Daamn thanks. Quite helpful

  • @vorapobautomation9760
    @vorapobautomation9760 4 месяца назад

    How to make main page as template ?

  • @osempo
    @osempo 6 лет назад +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  6 лет назад +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 6 лет назад

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

    • @umairsolutions
      @umairsolutions  6 лет назад

      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.

  • @mosqali1970
    @mosqali1970 3 года назад

    why i cant find other usercontrols from toolbox?

  • @KillBill01
    @KillBill01 3 года назад

    it work on visual studio 2012 ultimate ?

  • @_sl1de_
    @_sl1de_ 3 года назад

    Exactly what i was looking for

  • @brindayoudjeu7059
    @brindayoudjeu7059 2 года назад +1

    Thanks so much

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

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

  • @yuwenlilyhua4262
    @yuwenlilyhua4262 5 лет назад +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?

  • @hafizoktri3847
    @hafizoktri3847 6 лет назад +1

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

  • @z_tock
    @z_tock 2 года назад +1

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

  • @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 7 месяцев назад

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

  • @abolfazl2255
    @abolfazl2255 6 лет назад +1

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

    • @umairsolutions
      @umairsolutions  6 лет назад

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

  • @mehrdadakbari1721
    @mehrdadakbari1721 3 года назад

    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

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

  • @sometrioeng2602
    @sometrioeng2602 Год назад

    thanks for 'UserControl'

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

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

  • @pumpkinjack1089
    @pumpkinjack1089 2 года назад

    Thank you so much this helped me understand user control

  • @muhammadkathrada8438
    @muhammadkathrada8438 4 года назад +1

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

  • @muhammadhabibalkhairi7946
    @muhammadhabibalkhairi7946 3 года назад

    Thank you for the tutorial, this really help me.

  • @rjevangelista9769
    @rjevangelista9769 5 лет назад +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());
    }

  • @saihajmann6622
    @saihajmann6622 Год назад

    Very helpful, thank you😀

  • @micahjaredpaguinto398
    @micahjaredpaguinto398 6 месяцев назад

    thank u boss! nice tutorial

  • @dimitriskosse1727
    @dimitriskosse1727 2 года назад

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

  • @talesfromdahood
    @talesfromdahood 2 года назад

    Thank you man! - unexperienced guy, me.

  • @prod._ak
    @prod._ak 4 года назад

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

    • @yusof5020
      @yusof5020 4 года назад

      make sure to build the project

    • @yusof5020
      @yusof5020 4 года назад

      and you should see it

    • @Adnan-ft8oh
      @Adnan-ft8oh 4 года назад

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

  • @MegasXLR
    @MegasXLR 4 года назад +1

    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 :)

  • @kentlloydjavier4602
    @kentlloydjavier4602 Год назад

    Thanks!

  • @Extravi
    @Extravi 2 года назад

    Thanks

  • @FaheemSRILANKA
    @FaheemSRILANKA 6 лет назад +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  6 лет назад

      Rebuild your project, it will refresh automatically..

  • @TheUofastudent
    @TheUofastudent 5 лет назад +1

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

    • @chudisoftdev
      @chudisoftdev 5 лет назад

      ThePaintPro check this ruclips.net/video/PzPzHUYj4F4/видео.html

  • @dunayqudretli3382
    @dunayqudretli3382 3 года назад

    Thank you man 👍🏻

  • @naseefvpo9976
    @naseefvpo9976 3 года назад +1

    Thanks a lot..

  • @Cipkia987
    @Cipkia987 4 года назад

    Helped a lot thx!

  • @ronellorico706
    @ronellorico706 5 лет назад +1

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

    • @chudisoftdev
      @chudisoftdev 5 лет назад

      Ronel Lorico check this out ruclips.net/video/PzPzHUYj4F4/видео.html

  • @firdaushafizi7408
    @firdaushafizi7408 4 года назад +1

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

  • @FlexZone100
    @FlexZone100 4 года назад +2

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

  • @audit2901
    @audit2901 5 лет назад +2

    Awais Mehmood.

  • @suxufinimcaancabdi9434
    @suxufinimcaancabdi9434 5 лет назад +1

    THanks for the video go forward

  • @nhopnhap8653
    @nhopnhap8653 3 года назад

    thanks a lot

  • @matheuscastro271
    @matheuscastro271 4 года назад

    thank you

  • @crec11254
    @crec11254 4 года назад

    what the fuck i cant see them in toolbox

  • @fgteevroblox3641
    @fgteevroblox3641 5 лет назад

    wow thanks man its work

    • @umairsolutions
      @umairsolutions  5 лет назад

      You are Welcome!... Stay connected with us.

  • @sparky9705
    @sparky9705 4 года назад +1

    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 года назад +1

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

  • @chaliiid
    @chaliiid 5 лет назад +1

    Really..

  • @thanisahamed1254
    @thanisahamed1254 4 года назад

    thanks

  • @martinekmarik1526
    @martinekmarik1526 4 года назад +2

    thx

  • @aaliyajaved4316
    @aaliyajaved4316 5 лет назад

    thankxx mann

  • @anarchist6204
    @anarchist6204 4 года назад

    tysm

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