Thread: Easy Beginner Question

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    31

    Easy Beginner Question

    I know this is simple but here it is: When my user pushes a button called |Registry Number|, I want a *.txt file to pop up with a list of about 600 different numbers. Is it possible to do that and how? I know that I can initiate programs, but don't know if it is the same deal. Thanks for the help.

    ~Brett
    "Some succeed because they are destined to, others succeed because they are determined to."
    ~Anonymous

    "A shorn scrotum is quite breathtaking, I suggest you try it."
    ~Dr. Evil

    EMT/Firefighter
    Eagle Scout

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    During initialisation, read the text file into a list box control, then display the list box when they press the button, (either in a sub-dialog or simply a hidden control).

    It all really depends on what you want to do with it afterwards.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Refugee face_master's Avatar
    Join Date
    Aug 2001
    Posts
    2,052
    If you just want to display it, you can use the TextOut() function to place it in ur client area, but ofcourse, you'll need a scrollbar
    If you want to make it editable, you'll have to place it in an edit box. The I/O is the same, though.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Easy mmap question
    By randomyzed in forum C Programming
    Replies: 1
    Last Post: 06-03-2009, 02:59 PM
  2. Easy String position question...
    By Striph in forum C Programming
    Replies: 4
    Last Post: 05-11-2009, 08:48 PM
  3. beginner question
    By Barrot in forum C++ Programming
    Replies: 4
    Last Post: 08-19-2005, 02:17 PM
  4. Question About External Files (Beginner)
    By jamez05 in forum C Programming
    Replies: 0
    Last Post: 08-11-2005, 07:05 AM
  5. Easy question, (should be) easy answer... ;-)
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 06-12-2002, 09:36 PM