|
-
October 31st, 2010, 08:08 AM
#1
C# text input/output
I am in the process of creating an application using Visual C# '10 express, using a Windows Form Application Template. What I would like to have the form do, is present an output of text when specific text is entered.
For example:
Area Code: 512
Output Shows State: Texas (and a 800 number corresponding with it) 800-xxx-xxxx
Is it possible for that to happen? Preferably having it show the output within the same window, if not a pop-up window would be a nice touch as well.
-
October 31st, 2010, 11:19 AM
#2
Re: C# text input/output
Sure. You'd have to store the list and value combination for everyone that you want to include.
You could use XML, or TEXT, or even a DB Table. Depends on how many entries that you have, and how often you need to modify them.
-
October 31st, 2010, 02:13 PM
#3
Re: C# text input/output
I wou8ld suggest a SQL CE file and execute a query against it returning the value. XML and Text are fine too but have less options I think.
-
October 31st, 2010, 02:46 PM
#4
Re: C# text input/output
the way my companies computers are setup, the best option for me would be a text or xml file. What would be the best way for going about this?
What I would like for it to do is to have a specific area on the document where it displays the information corresponding with the data inserted.
For instance:
512-xxx-xxxx
Then shows(output):
TX
800-xxx-xxxx
800-xxx-xxxx
800-xxx-xxxx
800-xxx-xxxx
800-xxx-xxxx
800-xxx-xxxx
Basically when it sees that the 512 areacode is shown, specific data is shown with it. I will be using multiple area codes from other states of course so I need it to reflect that.
What is the most basic way for me to go about this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|