Windows Mobile 5 SDK Button Control

后端 未结 3 627
悲&欢浪女
悲&欢浪女 2021-01-22 14:42

I\'m a fairly novice programmer working on my first Windows Mobile application. I see that there is no button control available for my program. I\'ve never created a custom co

相关标签:
3条回答
  • 2021-01-22 14:53

    I faced the same problem, there's no Button control on Device controls toolbox in Visual Studio 2008. I know that it's because guidelines tell us to use links and menu instead.

    But you know, sometimes you must put a button when user requires it.

    I'm giving a try to the SDKs for Windows Mobile 6 at

    http://www.microsoft.com/downloads/details.aspx?FamilyID=06111a3a-a651-4745-88ef-3d48091a390b&displaylang=en

    but wondering where can I find a Windows Mobile 6.5 SDK?

    0 讨论(0)
  • 2021-01-22 14:56

    You are obviously developing with the Smartphone SDK, where no button is available. If you'd use the PocketPC SDK, then you'd have a button. These SDKs have been renamed to Standard and Professional alternatively in Windows Mobile 6.

    To be honest, I wouldn't recommend using a button in a Smartphone application. You could explain to your client that it is against the Windows Mobile guidelines to use a button in Smartphone applications and that the menu should be used instead. This is much quicker than having to navigate to the button and then clicking it.

    If the client insists on it, create a class that inherits from the Control class and override the OnPaint event.

    0 讨论(0)
  • 2021-01-22 15:19

    There is most definitely a button control available - no need to write your own. The controls available to you will be in the toolbox, which should be docked on the left side of Visual Studio. The controls won't be visible there unless you've added a form to your project and you have the form selected.

    0 讨论(0)
提交回复
热议问题