Hi there,
I have a windows where I would like to swap between (I think) grids.
I have two buttons: btn_food & btn_drinks
When I click the food-button, I want to see the available food (in buttons).
When I click the drinks-button, I want to see the available drinks (in buttons).
So, I need to switch between two "forms" (grids?) in order to change the listing of the proper buttons.
How can I do that?
Also, I found a lot of 'possible solutions' on the internet, which were they all refer to the "grid1.Visible" property.
Such property is not available when I try to add this. The property "IsVisible" is available, but when I write the code, the error tool of VS indicates that this property is read-only?
I'm working with VS2010 in C# language.
Any advice on this?
Thanks in advance!
Loading

FroglegRank #1,020 · 1.9K reputationPosted Jun 1, 2011, 8:54 AM EDT
or
grid1.Visible = false;
Kevin Brigitta40 reputationPosted Jun 1, 2011, 9:10 AM EDT
Do I have to add a specific "using" statement in the beginning of my code editor?
Greetz!
VulpesRank #55 · 29.2K reputationPosted Jun 1, 2011, 9:25 AM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Jun 1, 2011, 8:19 PM EDT
Please tell us if this is for Windows Forms or WPF or something else.
Kevin Brigitta40 reputationPosted Jun 2, 2011, 4:43 AM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Jun 2, 2011, 8:39 PM EDT
Perhaps a WPF Grid would satisfy your requirements; I am not sure.
Another possibility is a Panel. Also look at the StackPanel class.