locked
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,

    Regards,
    Arasan
    Tuesday, April 7, 2009 11:22 AM

Answers

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
    http://www.microsoft.com/downloads/details.aspx?FamilyID=06111a3a-a651-4745-88ef-3d48091a390b&displaylang=en

    Win Mobile 5 SDK
    http://www.microsoft.com/downloads/details.aspx?familyid=83A52AF2-F524-4EC5-9155-717CBE5D25ED&displaylang=en

    Also if you take a look at

    http://msdn.microsoft.com/en-us/windowsmobile/default.aspx

    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.

    HTH

    W.
    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,

    arasan
    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