Results 1 to 3 of 3

Thread: CommonDialog cancel problem (solved)

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2004
    Location
    Belgium
    Posts
    77

    CommonDialog cancel problem (solved)

    Hi again, I have another strange prob with the Save box of my commondialog control. When I create a new file with it at the first lunch of my project it work fine and create it, but then if I lunch it again and click cancel button, it act like if I had press OK. It lunch my "file already exist" error even if I change the name in the save box before click cancel.

    CDialog1.DialogTitle = "Create a new databse"
    CDialog1.DefaultExt = "dtk"
    CDialog1.Filter = "DVD-ROM (*.dtk)|*.dtk |DVD-Video (*.dtv)|*.dtv"
    CDialog1.Flags = &H800
    CDialog1.CancelError = False
    CDialog1.ShowSave
    Test = CDialog1.FileTitle

    If Test = Dir(CDialog1.FileName) Then
    MsgBox ("The database already exist")
    Else
    Set dbs = CreateDatabase(CDialog1.FileName, dbLangGeneral, dbVersion30)
    Select Case CDialog1.FilterIndex
    Case 1
    Call createDVDROM
    Case 2
    Call createDVDVideo
    End Select
    End If

    I hope someone could help me, I am new with VB I started 2 days ago and I have got a lot of small problem of that kind
    Last edited by choas; Feb 21st, 2004 at 11:21 AM.

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