C# - How to Display another UserControl by Clicking on button in One UserControl

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

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

  • @Dadadadam999
    @Dadadadam999 3 года назад +7

    An instance can be made simpler. :)
    public partial class Form1 : Form
    {
    public static Form1 Instance { get; }
    public From1()
    {
    InitializeComponent();
    Instance = this;
    }
    //other code
    }
    *If the property has only get, then it can be changed only in the class constructor.

  • @carlmarionmanlapaz4697
    @carlmarionmanlapaz4697 5 лет назад +10

    I love how you play with colors and interface

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

    Duuuuude, I have been looking for this video showing how to do this for many days but couldn't find one. Thank you so much🙌🙌

  • @marcosbarros7095
    @marcosbarros7095 4 года назад +4

    Dude, you're just the best doing such designs. Tks for sharing with us!

  • @TheByteBit
    @TheByteBit 5 лет назад +4

    dude, even if you win the lotto, don't stop making these types of videos; can't express enough how much I've gleaned from them. The music not withstanding, the pace is perfect and the end result is quite eye-catching.
    If you ever want to add a voiceover to your videos with further explanation, let me know. I'd be glad to help out in any way I can.

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

    Thank you so much! I'm new to c# and came here just out of curiosity, but ended up learning a lot. I also didnt know you could change the appearence of a button, that will certainly be useful as well

  • @LuisEduardo-ek4ht
    @LuisEduardo-ek4ht 5 лет назад +2

    Many thanks, I have so many problems when I need to make an application with several windows for college, this helped me a lot. I'll be signed up and I'll be waiting for next videos, congratulations for the work.

  • @JBilly-zj6xs
    @JBilly-zj6xs 4 года назад +1

    Thanks bro !!!!!!!!!!!!
    Your knowledge is amazing, I never thought C # WF could do this.

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

    Without this video my system would take several days to finish, Thank you btw;

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

    Thanks a lot this is what I was looking for. You helped me.

  • @alibarznji2000
    @alibarznji2000 5 лет назад +3

    i've been looking for this answer for quite a while,
    what i don't understand is that why is it that hard to open a UC from another one

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

    When I select add - User control, I do not have an option to add user control like you do in the video. Am I missing an extension of some sort?

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

    So good .. Masha Allah
    May Allah Loves with u so much (Allah Ap Sa Razi ho)

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

      Sir Database Please

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

      Bro yeh Channel Follow karen bht achi Videos hain Database ki.... Mera Ustad hai... ruclips.net/user/ProgramInUrdu

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

      Thanks

  • @Ankit-nj6cr
    @Ankit-nj6cr 4 года назад

    Video starts at 14:45

  • @НиколайТорощин-е6э
    @НиколайТорощин-е6э 5 лет назад +2

    Спасибо за видео 👍👍👍👍

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

    thanx man its really helped me

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

    very nice example! Thank you.

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

    you are my "C# Angel" :)

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

    Love your tutorials

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

    Thank you very much

  • @AMIRKHAN-dm2fm
    @AMIRKHAN-dm2fm 5 лет назад +1

    very nice bro.
    you are awsome.

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

    Love you broooooooooooo

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

    Good 💐💐💐

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

    Hey! This is extremly insipiring!
    I have a personal project that I'm working on and I can't seem to solve this problem.
    In Form1 I have a button. After clicking this button, the first usercontrol (new.cs) are dynamically loaded in the Panel (container).

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

    So nice design and so nice video it is veruy helpful!!! But may I ask one question is there a way for users to post information in our c# app??

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

    so good

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

    You're incredible

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

    It doesn't help me. Because I have a list of user controls managed by different buttons on form. And I wanted to open one userControl from another by clicking on button. No back button on form is required... pls help...

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

      Please contact us at info@csharpui.com

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

    Hi! I would like to ask if its possible to show 2 user controls in one form?
    1.) A button will display 1 user control in the form.
    2.) Then, a button from the recently displayed user control will display the second user control
    If its okay, can you make a tutorial bout it? Great tutorials by the way! Its helping me a lot :) Keep it up!

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

      ruclips.net/video/NuHeqH81vSM/видео.html
      first 2 minutes of the video

  • @khaled_hossain
    @khaled_hossain 5 лет назад +4

    Please make WPF video series .

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

    how about the back button is in the UCHome, not in form1?

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

    I have a problem..I am creating a software which is having more user controls. This method is only giving one user control (when pressing back button). I need to change that to go to the recently opened user control. when I add more it gives 'Object reference not set to an instance of an object.' error for back button click event (panelContainer.Controls["UCHome"].BringToFront();). But when I change "UCHome" to the other user control, it works.but after that it does not work for "UCHome". Please help me...

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

      ruclips.net/video/NuHeqH81vSM/видео.html
      first 2 minutes of video, I had the same problem

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

    Its great..!
    But what's the difference between form and usercontrol?

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

      User controls are a way of making a custom, reusable component. A user control can contain other controls but must be hosted by a form.Windows forms are the container for controls, including user controls. While it contains many similar attributes as a user control, it's primary purpose is to host controls.
      Ref: Stackoverflow

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

      @@CUiAcademy thank you..
      👍

  • @OscarGarcia-up3ph
    @OscarGarcia-up3ph 4 года назад

    Can you do the same with ChildForms instead of UserControls?

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

    Can u make tutorial how to Slide Panel Outside Not inside of the Applicaiton

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

    Where I can find icons which you use?

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

      Hi Bartłomiej Bartoszewicz. Please use ICONS8 desktop app for free icons of any color.. :)

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

      @@CUiAcademy Thanks :)

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

    great work

  • @CuongNguyen-bu3et
    @CuongNguyen-bu3et 4 года назад

    the compiler tell my this:
    System.NullReferenceException: 'Object reference not set to an instance of an object.
    this error pop up at:
    Form1.Instance.PnlContainer.Controls["NextPage2"].BringToFront();

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

    Hi I needed to Mack an mantra mfs100 divise appplition so using c#

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

    Nice!! Where you dowload the icons?

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

      Hi.. Please use icons8 desktop app for free icons of any color... :)

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

    thank you .

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

    thanks

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

    Thanks Brother.

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

    Do you have VB.net tutorials, I'm looking for video tutorial. My problem is that how to loop user control using the values coming from a database with image. I'm doing Point of Sale with Inventory System

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

      I can demonstrate that using C#... I don't have any experience on vb.net

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

      @@CUiAcademy can you make C# tutorial for that please? By the way I already checked your channel and there's a lot of useful thing in here. I also subscribed to your channel.

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

      3 years back i switched myself vb.net to c# and it worths switching language. I've found less research on vb.net where c# has endless support, research.

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

    I would like to ask what topic of programming is the coding, need to do some research. A reply would be helpful.

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

      Data Sructures & Algorithm

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

    Hello bro can u do one tutorial that can perform crude in user control...tnx

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

    amazing!

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

    Can you make another video on this without using panel Please

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

    please make next video on displaying processing image on data fetch from database

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

    how can I pass data that has entered in one user control to another user control?

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

    Nice tutorial, but I have a question. How does the user exit this form, alt + F4?

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

    amazing

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

    Form1UserControl.BringToFront();
    Don't Work
    Need a help...

  • @karim-sq1sk
    @karim-sq1sk 5 лет назад +2

    source code fore this video
    ??

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

      Please Download it from this link: github.com/SaLaaRHuSyN/DisplayUserControlFromAnotherUC

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

    Can u remake the epic games launcher ? I am new and I want to learn more about this :)

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

    thanks really helpful ^_^

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

    Hier UserControls1.BringToFront() dont Work for me...need a little help

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

    Will anyone have the source code of this video? please.

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

      Hi. Please download the source code from this link: github.com/SaLaaRHuSyN/DisplayUserControlFromAnotherUC

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

    can you create a login form in which we can create a user for first time and the user we create will be saved even if we close the program or shut down the computer and an option to change password when we logged in to the dashboard, please

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

      without using database?

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

      @@CUiAcademy with using database

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

      @@EGYcon Sure... Please watch my next Video... 😊😊

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

      @@CUiAcademy thank you very much 😍

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

    What's the solution in WPF ?

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

    it didnt work with guna ui framework

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

    In VB we put
    Name.visible

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

    where is source code? name?

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

    PERFECT

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

    okay it looks pretty BUT I just want to be TAUGHT the basics, not the fancy!

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

    This video too long tho. Half of the video shows irrelavent button addition.

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

    deyum son dawasick