Results 1 to 3 of 3

Thread: when program is run at the sencond time....

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2002
    Location
    VIETNAM
    Posts
    209

    when program is run at the sencond time....

    Would you mind helping me this problem:
    i want to make a program that when i run it for the 1st time,it will call a message ,for eg:"hello", and when i run it for the second times and later times,the message will say " hello,again"
    Please help me!!!!
    Thank you very much

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    You could save something in the Registry, or create a file...


    Has someone helped you? Then you can Rate their helpful post.

  3. #3
    Member
    Join Date
    Mar 2004
    Location
    Texas
    Posts
    53
    I'd suggest using a .INI file to save the setting, take a look at this example to see how to do something along those lines:
    http://www.vb-helper.com/howto_read_...ini_files.html
    Mabey make a variable that keeps the count of times the program has been executed, play around a bit and if you need more help just ask
    Good luck!
    Good programming site:
    *http://www.planet-source-code.com

    Our CS Clan Page:
    *http://h2p.inter-gamer.com/index.html

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