C# Tutorial - Multiple pages on the Form using Panel Control | FoxLearn

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ก.ย. 2024
  • How to use panel control to create multiple pages in c#

ความคิดเห็น • 98

  • @jeppie12
    @jeppie12 8 ปีที่แล้ว +85

    why oh why do people think that blaring music in the background of a tutorial, competing with the voice, is a good idea?

    • @Rendon276
      @Rendon276 4 ปีที่แล้ว +5

      That's an option. Yet he makes a valid point.

  • @meloonaticmelons
    @meloonaticmelons 7 ปีที่แล้ว +13

    It is actually a lot simpler than I expected! Wow Thanks!

    • @foxlearn
      @foxlearn  7 ปีที่แล้ว

      Thank you so much :)

  • @brewjaystudios6108
    @brewjaystudios6108 5 ปีที่แล้ว +17

    Fun tip! Mute and put on closed captions, you'll thank me

    • @foxlearn
      @foxlearn  5 ปีที่แล้ว +1

      Thank you !

    • @vivekpuri-08
      @vivekpuri-08 3 ปีที่แล้ว +1

      Yes too noisy

  • @nikhildusane1129
    @nikhildusane1129 7 ปีที่แล้ว +1

    This is awesome... Thank you soo much. I am looking for this since last 1 month. Thanks again

  • @smartkidsgh2688
    @smartkidsgh2688 2 ปีที่แล้ว +2

    it's not worrking for me 😭😭
    It shows only one panel, which is the last one
    Do I need to change the variable names before it works?

  • @Kokuen0245
    @Kokuen0245 3 ปีที่แล้ว +1

    No clue if you will reply since this is 5 years old, but, if I don't want next or previous and want a list of buttons like: "Page1", "Page2" and "Page3". How would I go about that?

    • @foxlearn
      @foxlearn  3 ปีที่แล้ว

      OK. Thank you for your suggestion. I'll upload soon !

    • @Kokuen0245
      @Kokuen0245 3 ปีที่แล้ว

      @@foxlearn jeez, thanks for replying and actually helping out!

    • @Kokuen0245
      @Kokuen0245 3 ปีที่แล้ว

      @@foxlearn and if I’m to be more exact with what I’m asking. Say I had a panel and put 5 buttons in it. And I wanted to be able to click a button and make a page appear and just repeat.

  • @blake5226
    @blake5226 3 ปีที่แล้ว +2

    Nice little video here, I like the simplicity, although I don't like the giant ad at the end that blocks the left portion of the view :/ oh well. Good job.

  • @tibi8106
    @tibi8106 4 ปีที่แล้ว +5

    Is there a way to edit the controls on a panel after another panel has been laid on it and there are more than 2 panels? Suppose I have 10 panels and now I can’t understand how to edit the controls if there are many panels and in addition they still occupy the entire surface of the form.

    • @sayalibayaskar9547
      @sayalibayaskar9547 2 ปีที่แล้ว

      did you find any solution to this?

    • @oliviafranken718
      @oliviafranken718 21 วันที่ผ่านมา

      1: When you're viewing your form under the "YourProject.cs [Design]" tab, go to the drop down that is at the top of the properties popup located in the bottom right corner of Visual Studio by default.
      2. Select the name of the panel you want to edit. It selects the panel but does not make it visible, and you can tell this because you can resize the panel, see the little four directional arrow to move it around, and the right facing carrot .
      3: Right click on the four directional arrow, and select bring to front. You should be able to edit the panel in peace now.

  • @michaelstefanos5461
    @michaelstefanos5461 4 ปีที่แล้ว +2

    What is the name of the music its so relaxing ...

  • @DiyintheGhetto
    @DiyintheGhetto ปีที่แล้ว

    hello How can I close the second form in the panel of the first form if it is a borderless second form? So I can open a third form.

  • @delidag
    @delidag 2 ปีที่แล้ว

    Thanks for useful video. I like the Fox Learn videos

  • @vishwanathreddy4301
    @vishwanathreddy4301 7 ปีที่แล้ว +1

    it's really good,, come up with more applications. TY

  • @Blessed473
    @Blessed473 4 ปีที่แล้ว +2

    You also have to change the tab index in properties to match the index so if you have two pages its 0 for page 1 and 1 for page 2.. too me 1 day to figure out why it wasnt working

    • @SamirSiddiq
      @SamirSiddiq 3 หลายเดือนก่อน +1

      Thank you so much for the tip, saved me some time

  • @TWJRPGGamming
    @TWJRPGGamming 5 ปีที่แล้ว +1

    Thx! But how do I modify each panel after all things in this video have been done?

    • @foxlearn
      @foxlearn  5 ปีที่แล้ว

      You should modify user control, panel only a container

  • @sonamu3627
    @sonamu3627 3 ปีที่แล้ว +1

    시청 완료

  • @theboss4006
    @theboss4006 3 ปีที่แล้ว

    Oh I'd like a different type of switching. Like a taskbar

  • @riteshkavankar
    @riteshkavankar 4 ปีที่แล้ว +2

    Background music ❤

  • @edmartellregala4580
    @edmartellregala4580 6 ปีที่แล้ว

    great video! can you also show a video on how to view data to another panel in datagrid?

  • @yeakleang
    @yeakleang 7 ปีที่แล้ว

    nice. that's what i was looking for. thanks.

    • @foxlearn
      @foxlearn  7 ปีที่แล้ว

      Thank you

  • @Rüstik_Wüdworks
    @Rüstik_Wüdworks ปีที่แล้ว

    THANK you so much!!!!

  • @mgomez00
    @mgomez00 4 ปีที่แล้ว

    The music is beautiful and the voice must belong to an angel. So keep them as they are.

  • @StefaniaMak
    @StefaniaMak 4 ปีที่แล้ว

    Is it possible to do this among multiple forms?

  • @maheshnigam2994
    @maheshnigam2994 2 ปีที่แล้ว

    thank you for video, it was very useful for me :)

  • @ricks3754
    @ricks3754 5 ปีที่แล้ว +3

    speed 1.5 is the best option to watch this

    • @foxlearn
      @foxlearn  5 ปีที่แล้ว +2

      Thank you !

  • @richard_2003
    @richard_2003 4 ปีที่แล้ว

    Thanks! it helps me.

  • @SathishKumar-gs4er
    @SathishKumar-gs4er 7 ปีที่แล้ว

    Good Explanation.....i struggled with this....Thanks for your useful video....

  • @LastMomentMan
    @LastMomentMan 2 ปีที่แล้ว

    When I create two panels, and I put one on the other, even it tach the edge of the other, it will disappear.
    in both, design stage, or executing stage.
    How to solve this issue ?.
    Other issue, how to assign the name of the panel, as a variable, so we can use it in a loop of arrays for example.
    C# is dealing with the array variable as a text not as a panel name.!
    ***
    This is the code:
    string[] AllPanels = new string[] { "pnl_1", "pnl_2", "pnl_3", "pnl_4", "pnl_5", "pnl_6", "pnl_7" };
    int PanelsCount = AllPanels.Count();

    for (int PanelLoop=0; PanelLoop

    • @PigFishYT
      @PigFishYT ปีที่แล้ว

      Thats because you try to use .Location on a string. Try using this code and loop though the list (modified some code i used for pictureboxes)
      List PanelElem = new List ();
      string[] PanelNames = { "Panel1", "Panel2", "Panel3" };
      foreach (string name in PanelNames)
      {
      PanelElem.Add((Panel)Controls.Find(name, true)[0]);
      }

  • @amgappsolution4587
    @amgappsolution4587 6 ปีที่แล้ว

    how make them slide out, instead of just plopping out ?

  • @fasihuddin2620
    @fasihuddin2620 7 ปีที่แล้ว

    what to do if after switching to last page we want to a finish button to close some thing ?
    if u have any video please share its link . and thanks for this video

    • @foxlearn
      @foxlearn  7 ปีที่แล้ว

      Hi, You can add a finish button when you click to the last page. You can set even to the finish button. I'll make the tutorial soon. thanks

    • @fasihuddin2620
      @fasihuddin2620 7 ปีที่แล้ว

      Ehm .. ! Thank you s]o much but i got it my project is done and thanks for all that help you provide there . Love your videos .

  • @fellixhudson7737
    @fellixhudson7737 7 ปีที่แล้ว

    If panel dock fill ??????? ;)

  • @hamzajilani2142
    @hamzajilani2142 6 ปีที่แล้ว

    its help alot......

  • @mrcysa
    @mrcysa 7 ปีที่แล้ว

    good video :) no doubt, but what are the name of the songs?

    • @foxlearn
      @foxlearn  7 ปีที่แล้ว

      Green Leaves, You can find it in the youtube music library

  • @fasihuddin2620
    @fasihuddin2620 7 ปีที่แล้ว

    This thing is only working with data grid view not without it . why ?

    • @foxlearn
      @foxlearn  7 ปีที่แล้ว

      Hi, What do you mean? can you describe more details? thanks

    • @fasihuddin2620
      @fasihuddin2620 7 ปีที่แล้ว

      i tried to add a panel without a data grid but that was not working at that time then I use
      panel.visible= true;
      which worked perfectly .

  • @aboodnimer9097
    @aboodnimer9097 6 ปีที่แล้ว

    hi friend
    how to make background image in form mdi parent c#

    • @foxlearn
      @foxlearn  6 ปีที่แล้ว

      Thank you for your suggestion !

  • @mojtabarezaei950
    @mojtabarezaei950 5 ปีที่แล้ว

    Thank you soo much

    • @foxlearn
      @foxlearn  5 ปีที่แล้ว

      Thank you so much !

  • @mojtabarezaei950
    @mojtabarezaei950 5 ปีที่แล้ว

    Thank you

    • @foxlearn
      @foxlearn  5 ปีที่แล้ว

      Thank you so much !

  • @MasterRegan
    @MasterRegan 8 ปีที่แล้ว

    nice video

    • @foxlearn
      @foxlearn  8 ปีที่แล้ว

      Thank you :)

  • @baraaageel3262
    @baraaageel3262 5 ปีที่แล้ว

    thanks a lot

    • @foxlearn
      @foxlearn  5 ปีที่แล้ว

      You're welcome. Thank you !

  • @ansargondal1
    @ansargondal1 9 ปีที่แล้ว

    AwSome. Keep it up

  • @teckycloud2642
    @teckycloud2642 7 ปีที่แล้ว

    source code where

  • @des_sun1x
    @des_sun1x 6 ปีที่แล้ว

    love u.

  • @latenightenjoyer
    @latenightenjoyer 9 ปีที่แล้ว

    I didn't find it elegant way to achieve this. Works fine, but imagine that later on you have to add another control to Page 1. That would be.. crap, moving all the Pages to get the one from the bottom.

    • @foxlearn
      @foxlearn  9 ปีที่แล้ว +1

      +Paweł Duszak Select the panel you want to add control from properties explorer and set BringToFront

    • @sayalibayaskar9547
      @sayalibayaskar9547 2 ปีที่แล้ว

      @@foxlearn select the panel from where? can you add this in the video?

  • @sethhong8049
    @sethhong8049 6 ปีที่แล้ว

    tyyy

    • @foxlearn
      @foxlearn  6 ปีที่แล้ว

      Thank you !

  • @sandi3ai
    @sandi3ai 6 ปีที่แล้ว

    I have 4 panels and no mather what i do, it skips one (usually the second one).. i changed them from panels 1-4 to panels 5-8 .. becaused i did them all over again.. and still the same problem

    • @6Pope9
      @6Pope9 3 ปีที่แล้ว

      check if you're adding them to the list in the right order

  • @Supersixers6
    @Supersixers6 ปีที่แล้ว

    ok good ....but you not executed it

  • @Omey731
    @Omey731 6 ปีที่แล้ว +1

    music was too annoying to make this video useful for me, had to mute it !

  • @softarn5554
    @softarn5554 7 ปีที่แล้ว

    can you just send me the source code? i want to compare. :/

    • @vishwanathreddy4301
      @vishwanathreddy4301 7 ปีที่แล้ว +2

      hey I am sending the source code to you,, it's easy man.
      using System;
      using System.Collections.Generic;
      using System.ComponentModel;
      using System.Data;
      using System.Drawing;
      using System.Linq;
      using System.Text;
      using System.Threading.Tasks;
      using System.Windows.Forms;
      namespace multiple_pages
      {
      public partial class Form1 : Form
      {
      List listPanel = new List();
      int index;
      public Form1()
      {
      InitializeComponent();
      }
      private void label2_Click(object sender, EventArgs e)
      {
      }
      private void btnprevious_Click(object sender, EventArgs e)
      {
      if (index >0)
      listPanel[--index].BringToFront();
      }
      private void btnnext_Click(object sender, EventArgs e)
      {
      if (index < listPanel.Count-1)
      listPanel[++index].BringToFront();
      }
      private void panel3_Paint(object sender, PaintEventArgs e)
      {
      }
      private void Form1_Load(object sender, EventArgs e)
      {
      listPanel.Add(panel1);
      listPanel.Add(panel2);
      listPanel.Add(panel3);
      listPanel[index].BringToFront();
      }
      }
      }

  • @Supersixers6
    @Supersixers6 ปีที่แล้ว

    not clearity

  • @alejandroochoaenriquez8743
    @alejandroochoaenriquez8743 7 ปีที่แล้ว +4

    the music is bored :/

    • @foxlearn
      @foxlearn  7 ปีที่แล้ว +2

      Thank you for your suggestion

    • @westernranchers
      @westernranchers 7 ปีที่แล้ว

      Can you please let me know what's the first music is? It is awesome.. I can hear it all day

    • @jack.1.
      @jack.1. 6 ปีที่แล้ว

      Fox Learn I thought the music was fine 👍

    • @nrvn999
      @nrvn999 6 ปีที่แล้ว +1

      I could play this tutorial whenever I can't sleep at 3 a.m.

  • @808reaper7
    @808reaper7 4 ปีที่แล้ว

    Control

    • @foxlearn
      @foxlearn  4 ปีที่แล้ว +1

      Thank you !

  • @koteshmeesala1630
    @koteshmeesala1630 3 ปีที่แล้ว

    Too fast

  • @НектоЛохматый
    @НектоЛохматый 6 ปีที่แล้ว +1

    Thank you, but I'd be glad if you were speaking more.. naturally? Your voice is like radio. And the music was too loud to be backgroud. However, the tutorial was quite useful.

  • @brendanofthelongwhitecloud8489
    @brendanofthelongwhitecloud8489 8 ปีที่แล้ว

    Quit the music and perhaps try some inclination in your voice, is it a computer generated voice or something?