Solved

Need advice to display selections: Infinite, 30 to 99999

Posted on 2013-05-15
4
168 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 81

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 200 total points
ID: 39170278
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
ID: 39170369
Could you elaborate the meaning of 2 separate items. Thanks
0
 

Accepted Solution

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

Author Closing Comment

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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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!
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

740 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