Results 1 to 3 of 3

Thread: Error on cancel

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2000
    Location
    London, UK
    Posts
    145
    Hello!
    I use CommonDialog to open (text)files to a RichTextBox, and saving them again in my app.
    It all works well, but if I press Cancel, the program dies. It's not the CancelError property, it's set to off (and it's not that error), so I don't know what to do.
    Also, if I have opened one file, saves it, then makes a new file and takes Save As, and presses Cancel, it returns to the previously opened file.
    What shall I do?

    Pentax
    Wilhelm Tunemyr,
    Swede in London

    [email protected]

    "Dort, wo man Bücher verbrennt, verbrennt man am Ende auch Menschen"
    Heinrich Heine (1797-1856)

    Pravda vítezi!
    (Truth prevails!)

  2. #2
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105
    Post some code .

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2000
    Location
    London, UK
    Posts
    145
    Well, it worked out.
    The problem was, without a filename, a Do-While-loop wouldn't end, so it just wnet on, and on, and on...
    Wilhelm Tunemyr,
    Swede in London

    [email protected]

    "Dort, wo man Bücher verbrennt, verbrennt man am Ende auch Menschen"
    Heinrich Heine (1797-1856)

    Pravda vítezi!
    (Truth prevails!)

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