Entering a set of integers

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am wring a Windows Forms application with VS2005/C#. The user of this app
will enter a set of integer values (0-255 each), unknown quantity. All I can
think of is TextBox and custom code to parse comma-separated values, but it's
not elegant and error-prone. Can someone suggest a better way?
Gregory
 
I am wring a Windows Forms application with VS2005/C#. The user of this app
will enter a set of integer values (0-255 each), unknown quantity. All I can
think of is TextBox and custom code to parse comma-separated values, but it's
not elegant and error-prone. Can someone suggest a better way?
Gregory

Present the user with a 16 by 16 array of elements that correspond to the
integers 0 to 255 inclusive. When he clicks an element, append a comma and
the text of the element (a number 0 to 255) to your text box. What should
the elements be? Maybe buttons, maybe something else, but you need to
process clicks against them. You could add the buttons in code rather than
tediously in the designer. I'd keep the text box so the user can correct
errors, and I'd keep the comma parser. The idea is just to give him an
alternative to typing. Take a look at the windows Character Map utility (in
xp, accessories, system tools, character map) which behaves something like
what I'm suggesting.
 
I am wring a Windows Forms application with VS2005/C#. The user of this app
will enter a set of integer values (0-255 each), unknown quantity. All I can
think of is TextBox and custom code to parse comma-separated values, but it's
not elegant and error-prone. Can someone suggest a better way?
Gregory

Do you elaborate the problem?
 
Back
Top