ARTICLE

Unit Conversion Tool for Pocket PC with Compact Framework.

Posted by Jigar Desai Articles | Visual Basic 2010 June 04, 2004
This article explains about the unit conversion tool for Pocket PC. I have created a Unit conversion tool to calculate conversion from 16 different types.
Download Files:
 
Reader Level:



Though there is long time to go for version 1 for Compact Framework lots of Programmer will start working on it and getting use to it before final version comes in market.

I have created Unit conversion tool to calculate conversion from 16 different types, this tool can be very handy to technical persons any that too when its in PocketPc.

I have taken out Conversion factors from my grand old Lotus Spreadsheet ( Dos Based) which I wrote back in 1992, Although most of conversion factors are correct I cant take responsibility of  there accuracy( I havent got time to recheck ).

ConverterData: I have Implemented Conversion logic in separate Class ConverterData in which I have all data and Method for conversion, I have kept data of Conversion types in to string array, string jagged array contains all units Names. And Double jagged array contains conversion factors for corresponding Names.

frmUnitConverter.cs: Is a form containing user interface for Unit Converter.

I have used Tab Control for Showing different unit types, one important thing I havent placed my components on panels of tab, they are directly on form, so that I do not have to remove same components from one panel to another panel when user changes panel.

I am dynamically inserting values of panel tab on startup and value of list box that contains conversion units when ever tab changes.

There is very little difference between way of programming in regular windows application and Compact framework PocketPc application but one of the important thing is to take due consideration for processing power available.

share this article :
post comment
 
Team Foundation Server Hosting
Become a Sponsor
PREMIUM SPONSORS
  • ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications. Visit DynamicPDF here
    Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor