Results 1 to 3 of 3

Thread: How to reference CDialog ...

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2005
    Posts
    163

    How to reference CDialog ...

    I have the following code in my project
    VB Code:
    1. CDialog.Filter = "sales.dta|*.dta"
    2. CDialog.FilterIndex = 2
    3. CDialog.ShowOpen
    The project runs in code with no problem but I can not compile it ... I get the following error:
    Compile error:
    Variable not defined
    What am I missing ...?
    chilling

  2. #2
    Fanatic Member space_monkey's Avatar
    Join Date
    Apr 2005
    Location
    神と歩くこと
    Posts
    573

    Re: How to reference CDialog ...

    Have you added the common dialog control to your form/project?
    Using VB6 or VB.net 2008 with .net 3.5
    "Life... death... either way I'll be confined to a small cubicle!" - Hermes Conrad

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 2005
    Posts
    163

    Re: How to reference CDialog ...

    Thouoght it was on the form ops: the component was not even open in the project so I am not sure how it was working in code ... but there again never sure how lots of these things work

    Thanks - now compiled
    chilling

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