简体   繁体   中英

What's the best way to create a Windows Mobile application with multiple screens in C#

I am creating a Windows Mobile Application in C# and Visual Studio 2008.

The application will have 5-6 main 'screens'. There will also be bar (/area) with information (eg a title, whether the app is busy, etc) above the screens, and a toolbar (or similar control) below the screens with 5-6 buttons (with images) to change the active screen (ie the screens will share the top bar and toolbar)

What is the best way to implement this?

  1. Use multiple forms, and just include the toolbar and top-bar in each
  2. Use a single form and something like the Tab control (but customised) to contain the screens
  3. Something else?

Keeping in mind a) memory usage and b) time to switch screens.

Thanks in advance. Any links, pointers etc are much appreciated.

Use a single Form and fill the center with UserControls. You can explicitly Dispose the UCs when appropriate.

Trick, use tabControl and set location to (0, -26)

int Offset = 26;
tabControl1.Size = new Size(800, 480 + Offset);
tabControl1.Location = new Point(0, - Offset);

this, will hide the tabs

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM