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

十年热恋 提交于 2020-01-03 19:40:11

问题


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 (e.g. 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 (i.e. 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.


回答1:


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




回答2:


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



来源:https://stackoverflow.com/questions/2412843/whats-the-best-way-to-create-a-windows-mobile-application-with-multiple-screens

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!