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
Sam HobbsPosted Jun 3, 2011, 12:39 AM
Perhaps a WPF Grid would satisfy your requirements; I am not sure.
Another possibility is a Panel. Also look at the StackPanel class.
Kevin BrigittaPosted Jun 2, 2011, 8:43 AM
Sam HobbsPosted Jun 2, 2011, 12:19 AM
Please tell us if this is for Windows Forms or WPF or something else.
VulpesPosted Jun 1, 2011, 1:25 PM
Kevin BrigittaPosted Jun 1, 2011, 1:10 PM
Do I have to add a specific "using" statement in the beginning of my code editor?
Greetz!
FroglegPosted Jun 1, 2011, 12:54 PM
or
grid1.Visible = false;