• 로그인
  • Microsoft.com
  • 대한민국 (한국어)
    Brasil (Português)Česká republika (Čeština)Deutschland (Deutsch)España (Español)France (Français)Italia (Italiano)United States (English)Россия (Русский)日本 (日本語)中华人民共和国 (中文)台灣 (中文)香港特别行政區 (中文)
 
 
Microsoft Developer Network
 
 
홈
 
 
라이브러리
 
 
학습
 
 
다운로드
 
 
지원
 
 
커뮤니티
 
 
포럼
 
 
 
Microsoft Developer Network > 포럼 홈 > .NET Base Class Library > Multiple filetyps in one filter - OpenFileDialog
질문하기질문하기
포럼 검색:
  • .NET Base Class Library 포럼 검색 .NET Base Class Library 포럼 검색
  • MSDN 포럼 모두 검색 MSDN 포럼 모두 검색
 

답변됨Multiple filetyps in one filter - OpenFileDialog

  • 2006년 11월 8일 수요일 오후 1:53Chimme 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    도움이 된 게시물로 투표
    0

    How can i create a filter for a openfiledialog that shows only some filetypes.

    I know how to create a filter for one filetype but i want to have an option to display many different image-files(png, jpg, bmp, png) in one filter.

    • 응답응답
    • 인용인용
     

답변

  • 2006년 11월 8일 수요일 오후 2:12Mattias SjögrenMVP사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     답변됨
    도움이 된 게시물로 투표
    5
    You can specify multiple extensions separated by semicolons. There's an example in the FileDialog.Filter property documentation.
    • 응답응답
    • 인용인용
     
  • 2006년 11월 8일 수요일 오후 2:11ahmedilyasMVP, 중재자사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     답변됨
    도움이 된 게시물로 투표
    0

    take a look at this:

    http://msdn2.microsoft.com/en-us/library/system.windows.forms.filedialog.filter.aspx

    it has the example there which you can use and copy and rename the file extensions to whichever filter you want to show

    • 응답응답
    • 인용인용
     

모든 응답

  • 2006년 11월 8일 수요일 오후 3:04Chimme 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    도움이 된 게시물로 투표
    0

    Works like a charm.

     

    Tack mattias :)

    • 응답응답
    • 인용인용
     
포럼과 관련하여 도움이 필요합니까? (질문과 답변)
 
© 2009 Microsoft Corporation. All rights reserved.
프로필(내 정보) 관리
|
법적정보
|
MSDN 최신 뉴스레터
|
사용약관
|
상표
|
개인정보보호