Need sample code for buttons, edit box, static box..etc RRS feed

  • Question

  • Hello All,

         I am new to the windows mobile p[latform and I have been assgned the task to create media player that may have play / pause / stop buttons , progress bar, browse option to locate the file..etc. If anyone has the sample code or link for creation of buttons,  edit or text box windows, Plesae help me.

    Thank you,

    Tuesday, April 7, 2009 11:22 AM


All replies

  • Hi,

    I'm not quite sure what you're after here?

    You'll need Visual Studio (of course :-D) and the relevant SDK(s) for the Windows Mobile version that you want to target with your media player.

    Once both are installed you should be able to Choose a Smart Device Project and target the version of Windows Mobile you need and add a form and drag the relevant controls etc onto the form designer.

    Here are the links to the Windows Mobile SDKs:-

    Win Mobile 6 SDK

    Win Mobile 5 SDK

    Also if you take a look at


    It'll provide a good jumping off point I'd have thought.

    Let me know if you need something more specific.

    Edited to say that you'll want to also ensure you have smart device development enabled on your visual studio installation.


    Tuesday, April 7, 2009 11:38 AM
  • Hi, I have already installed all the necessary compnents and also enabled the smart device development in Visual studio installation. To be more specific,  I am in the need for some sample code that explians about how to create buttons, edit box, text box, combo box...and browse to the folders to get files..etc.

    Thank you,

    Wednesday, April 8, 2009 5:27 AM
  • Hi arasan,

    There is a sample in SDK, please refer to it:

    D:\Program Files\Windows Mobile 6 SDK\Samples\PocketPC\CPP\ATL\wmpsample

    Best regards,
    Guang-Ming Bian - MSFT
    Please remember to mark the replies as answers if they help and unmark them if they provide no help
    Thursday, April 9, 2009 3:56 AM