Results 1 to 2 of 2

Thread: [2008] OpenFileDialog in console application

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2008
    Posts
    100

    [2008] OpenFileDialog in console application

    Hello everyone,

    I need some help with a problem I have in a console application. I need the program to show a OpenFileDialog window when certain text is entered, such as "file". I've tried doing this and I cannot get it to work. I really need some help with this. Thanks

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2008] OpenFileDialog in console application

    Open your MSDN Library and read the documentation for the OpenFileDialog class. What assembly is it declared in? Have you referenced that assembly? What namespace is it a member of? Have you either imported that namespace or else qualified the class name? This is exactly the same for any and every class.

    That said, WinForms interaction with the user should generally be avoided in Console applications.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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