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

Поделиться
HTML-код
  • Опубликовано: 8 окт 2015
  • How to use panel control to create multiple pages in c#

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

  • @jeppie12
    @jeppie12 8 лет назад +81

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

  • @nikhildusane1129
    @nikhildusane1129 7 лет назад +1

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

  • @brewjaystudios6108
    @brewjaystudios6108 5 лет назад +17

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

  • @yeakleang
    @yeakleang 7 лет назад

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

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

    Thanks for useful video. I like the Fox Learn videos

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

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

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

    Thanks! it helps me.

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

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

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

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

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

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

    THANK you so much!!!!

  • @SathishKumar-gs4er
    @SathishKumar-gs4er 7 лет назад

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

  • @blake5226
    @blake5226 2 года назад +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.

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

    시청 완료

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

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

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

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

  • @DiyintheGhetto
    @DiyintheGhetto 11 месяцев назад

    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.

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

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

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

    Is it possible to do this among multiple forms?

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

    its help alot......

  • @riteshkavankar
    @riteshkavankar 3 года назад +2

    Background music ❤

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

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

  • @noob-ww7sy
    @noob-ww7sy 6 лет назад

    love u.

  • @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 21 час назад +1

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

  • @ansargondal1
    @ansargondal1 8 лет назад

    AwSome. Keep it up

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

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

    Thank you soo much

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

      Thank you so much !

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

    thanks a lot

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

      You're welcome. Thank you !

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

    speed 1.5 is the best option to watch this

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

    Thank you

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

      Thank you so much !

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

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

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

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

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

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

    tyyy

  • @MasterRegan
    @MasterRegan 7 лет назад

    nice video

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

  • @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]);
      }

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

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

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

      Thank you for your suggestion !

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

  • @teckycloud2642
    @teckycloud2642 7 лет назад

    source code where

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

  • @latenightenjoyer
    @latenightenjoyer 8 лет назад

    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  8 лет назад +1

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

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

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

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

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

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

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

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

  • @808reaper7
    @808reaper7 4 года назад

    Control

  • @alejandroochoaenriquez8743
    @alejandroochoaenriquez8743 7 лет назад +4

    the music is bored :/

    • @foxlearn
      @foxlearn  7 лет назад +2

      Thank you for your suggestion

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

      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.

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

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

    ok good ....but you not executed it

  • @brendanofthelongwhitecloud8489
    @brendanofthelongwhitecloud8489 7 лет назад

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

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

    not clearity

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

    Too fast