No parallell to the Java card layout in C#?

I've been programming some Java previously. In Java there are different layouts which you can use for an application. One of them is called "Card Layout". In a card layout there are a number of cards/windows. Only the top one is shown and all of the others are not. (Like a deck of cards).

Is there no parallell to the Java "Card Layout" in C#

Do you have to use a TabControl

I'm developing a NETCF 2.0 application so I can't use any techniques which are not part of the .NET Compact Framework 2.0.

/Lars



Answer this question

No parallell to the Java card layout in C#?

  • Autox

    Using a TabControl would be one option... however if you know which ‘Card’ you want to go to next you could use Panels or GroupBoxes stacked on top of each other while individually grouping together the controls you want as part of a logical card for much the same effect.

    In order to move the desired one to the front you’d need only call it’s BringToFront() method while to send one to the back of the pile you’d call SendToBack().

    Could this be what you are looking for



  • Golden_Jammy

    Group boxes are not available in NETCF but Panels are. How would you edit the eight panels when they are on top of each other in the VS2005 graphical GUI editor. Editing the code will work but I don't want to use code to enter the positions of the components and so forth. (someButton.SetPosition(203,743)...) + that when you put one panel on top of another it becomes part of the panel beneath it. It gets placed in that panel.

    /Lars


  • No parallell to the Java card layout in C#?