OpenDialog which extension gets used

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Frank

    #1

    OpenDialog which extension gets used

    with OpenDialog
    suppose you set
    ..Filter = "Image (*.ico,*.jpg) |*.ico;*.jpg"

    ...AddExtension = True

    Which extension gets tacked on to the name?



    Second question

    Looking around I've seen all these extensions. Some, like ICON might have
    been simply a typo by someone wanting to type ICO

    Are they all used in a way that makes the matching correct

    JPG;JPEG

    TIF;TIFF

    ICO;ICON



    Thanks


  • Newbie Coder

    #2
    Re: OpenDialog which extension gets used

    You have a default extension property which you can specify.

    OpenFileDialog1 .DefaultExt = "*.jpg"

    --
    Newbie Coder
    (It's just a name)


    Comment

    • Frank

      #3
      Re: OpenDialog which extension gets used

      To make it brief I'm afraid I over simplified the string.
      Here is a little more of it.
      Joint Photographic(*. jpg;*.jpeg)|Tag Image(*.tiff'*. tif)"



      do you know if these are all valid extensions to Windows

      JPG;JPEG

      TIF;TIFF

      ICO;ICON



      Thanks




      "Newbie Coder" <newbiecoder@sp ammeplease.comw rote in message
      news:%2303RYMNT HHA.192@TK2MSFT NGP04.phx.gbl.. .
      You have a default extension property which you can specify.
      >
      OpenFileDialog1 .DefaultExt = "*.jpg"
      >
      --
      Newbie Coder
      (It's just a name)
      >
      >

      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: OpenDialog which extension gets used

        " Frank" <frank@a-znet.comschrieb :
        To make it brief I'm afraid I over simplified the string.
        Here is a little more of it.
        Joint Photographic(*. jpg;*.jpeg)|Tag Image(*.tiff'*. tif)"
        Yes, you'll have to specify pairs of display strings and extensions. Check
        out the documentation on the 'Filter' property.

        --
        M S Herfried K. Wagner
        M V P <URL:http://dotnet.mvps.org/>
        V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

        Comment

        • Frank

          #5
          Re: OpenDialog which extension gets used

          thanks
          "Newbie Coder" <newbiecoder@sp ammeplease.comw rote in message
          news:%2303RYMNT HHA.192@TK2MSFT NGP04.phx.gbl.. .
          You have a default extension property which you can specify.
          >
          OpenFileDialog1 .DefaultExt = "*.jpg"
          >
          --
          Newbie Coder
          (It's just a name)
          >
          >

          Comment

          • Frank

            #6
            Re: OpenDialog which extension gets used


            "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.atwrot e in message
            news:eNs5aZSTHH A.2212@TK2MSFTN GP02.phx.gbl...
            >" Frank" <frank@a-znet.comschrieb :
            >To make it brief I'm afraid I over simplified the string.
            >Here is a little more of it.
            >Joint Photographic(*. jpg;*.jpeg)|Tag Image(*.tiff'*. tif)"
            >
            Yes, you'll have to specify pairs of display strings and extensions.
            Check out the documentation on the 'Filter' property.
            >
            thanks


            Comment

            Working...