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.
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.
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
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 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.
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
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();
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]); }
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
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.
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(); } } }
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.
why oh why do people think that blaring music in the background of a tutorial, competing with the voice, is a good idea?
That's an option. Yet he makes a valid point.
It is actually a lot simpler than I expected! Wow Thanks!
Thank you so much :)
This is awesome... Thank you soo much. I am looking for this since last 1 month. Thanks again
Fun tip! Mute and put on closed captions, you'll thank me
Thank you !
Yes too noisy
nice. that's what i was looking for. thanks.
Thank you
Thanks for useful video. I like the Fox Learn videos
it's really good,, come up with more applications. TY
Thanks! it helps me.
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.
did you find any solution to this?
thank you for video, it was very useful for me :)
great video! can you also show a video on how to view data to another panel in datagrid?
THANK you so much!!!!
Good Explanation.....i struggled with this....Thanks for your useful video....
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.
시청 완료
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?
What is the name of the music its so relaxing ...
Thx! But how do I modify each panel after all things in this video have been done?
You should modify user control, panel only a container
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.
Oh I'd like a different type of switching. Like a taskbar
Is it possible to do this among multiple forms?
its help alot......
Background music ❤
The music is beautiful and the voice must belong to an angel. So keep them as they are.
love u.
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
Thank you so much for the tip, saved me some time
AwSome. Keep it up
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?
OK. Thank you for your suggestion. I'll upload soon !
@@foxlearn jeez, thanks for replying and actually helping out!
@@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.
Thank you soo much
Thank you so much !
thanks a lot
You're welcome. Thank you !
speed 1.5 is the best option to watch this
Thank you !
Thank you
Thank you so much !
how make them slide out, instead of just plopping out ?
figure it your self DA
If panel dock fill ??????? ;)
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
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
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 .
tyyy
Thank you !
nice video
Thank you :)
good video :) no doubt, but what are the name of the songs?
Green Leaves, You can find it in the youtube music library
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
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]);
}
hi friend
how to make background image in form mdi parent c#
Thank you for your suggestion !
This thing is only working with data grid view not without it . why ?
Hi, What do you mean? can you describe more details? thanks
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 .
source code where
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
check if you're adding them to the list in the right order
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.
+Paweł Duszak Select the panel you want to add control from properties explorer and set BringToFront
@@foxlearn select the panel from where? can you add this in the video?
can you just send me the source code? i want to compare. :/
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();
}
}
}
music was too annoying to make this video useful for me, had to mute it !
Control
Thank you !
the music is bored :/
Thank you for your suggestion
Can you please let me know what's the first music is? It is awesome.. I can hear it all day
Fox Learn I thought the music was fine 👍
I could play this tutorial whenever I can't sleep at 3 a.m.
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.
ok good ....but you not executed it
Quit the music and perhaps try some inclination in your voice, is it a computer generated voice or something?
not clearity
Too fast