Kevin Brigitta

Kevin Brigitta

  • NA
  • 43
  • 49.1k

C# Visibility Options

Jun 1 2011 12:09 PM
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!

Answers (6)