CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2010
    Posts
    10

    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.

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    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.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Oct 2010
    Posts
    11

    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.

  4. #4
    Join Date
    Oct 2010
    Posts
    10

    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
  •  





Click Here to Expand Forum to Full Width

Featured