Results 1 to 3 of 3

Thread: [RESOLVED] [2005] Custom OpenFileDialog problem

Threaded View

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Resolved [RESOLVED] [2005] Custom OpenFileDialog problem

    Attached is a project to illustrate my issue.

    There is a VB.NET windows forms app, and a C# Class Library (so you need both to run this)

    The C# library is a wrapper to using the OpenFileDialog control via unmanaged code in order to customize the OpenFileDialog. In the example, the dialog is looking for text files, and when you select a textfile, the openfiledialog will display a preview of it right in the dialog. You can apply this to anything really, like showing a picture preview when opening picture files etc...

    So anyway, it works fine and all, however I have 2 issues with it:

    1) It does not open as a dialog, but rather just as a standard window. It should open modal like the .NET openfiledialog (or the VB6 one for that matter)

    2) It puts itself in the taskbar when its opened, which it shouldn't do. This issue may actually resolve itself if I can get it opening as a dialog (#1)

    Any thoughts? I looked through the help files on MSDN for this structure, but I did not see any flags indicating a way to set it modal or not.
    Attached Files Attached Files

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