How to put a Run time condition in your C# code to differentiate between WINDOWS MOBILE 6.5.3 and WINDOWS MOBILE 6.5 ? RRS feed

  • Question

  • Hi,

    I have C# based application using CF2.0(MS VS.NET 2008) which is working fine on Windows Mobile 6.5.

    There is some UI  problem (Menu Item positions) if I install the same application on Windows Mobile 6.5.3. So to solve the same I need to put a  logic  in my code so that I can check the WINDOWS MOBILE version (6.5 or 6.5.3) on run time , but not able to find a condition based on which I can do so.

    Can any body help in finding the exact Windows Mobile version On which My app will be installed and how (using C#)?

    Thursday, September 23, 2010 1:01 PM


  • you can use GetVersionEx() to get the OS version. see the msdn link.


    Also see the forum link.


    Hope it will help to you


    Vinoth.R http://vinoth-vinothblog.blogspot.com http://www.e-consystems.com
    • Marked as answer by warrentang Tuesday, September 28, 2010 2:12 AM
    Thursday, September 23, 2010 1:28 PM