Solved

Need advice to display selections: Infinite, 30 to 99999

Posted on 2013-05-15
4
161 Views
Last Modified: 2013-05-21
Hi experts
I would like some advice on a proper way to display in Winform the following:
They need to be data-bound to an object such that "Infinite" is represented by integer '0', "30" as '30', etc. (ie. 1...29 are prohibited.)

   Infinite
   30
   31
    :
    :
   99999

I guess I have two options: comboBox or domainUpDown.
Is it possible that when user types "I" or "i", then "Infinite" shows up immediately?

Thanks in advance.
0
Comment
Question by:dominicwong
  • 3
4 Comments
 
LVL 78

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 200 total points
Comment Utility
What you need and what you display are 2 separate items.  
0 will display 0 unless you override it and tell it to display infinite.. you also need to do the converse if the user enters Infinite then you pass back to the backend a 0.  You also need data validation to ensure the range of 1-29 is excluded.. or returned back to the user as an error.
0
 

Author Comment

by:dominicwong
Comment Utility
Could you elaborate the meaning of 2 separate items. Thanks
0
 

Accepted Solution

by:
dominicwong earned 0 total points
Comment Utility
Used a comboBox and bound it to a Dictionary.
0
 

Author Closing Comment

by:dominicwong
Comment Utility
Managed to resolve it by using a comboBox and Dictionary.
Thanks anyway though.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now