[C# FileDialog] 간단한 Open / Save 파일 다이얼로그

Created with colorer-take5 library. Type 'csharp'

//파일 ��픈 다이얼로그
            OpenFileDialog openPanel = new OpenFileDialog();
            openPanel.InitialDirectory = "d:\\";
            openPanel.Filter = "CustomFile (*.cus)|*.cus|txt (*.txt)|*.txt | All files (*.*)|(*.*)";
            if(openPanel.ShowDialog() == DialogResult.OK)
                Trace.WriteLine("OK      " +openPanel.FileName+ " " 
                                                               + openPanel.SafeFileName);
            //파일 세이브 다이얼로그
            SaveFileDialog savePanel = new SaveFileDialog();
            openPanel.Filter = "CustomFile (*.cus)|*.cus|txt (*.txt)|*.txt | All files (*.*)|(*.*)";
            if(savePanel.ShowDialog() == DialogResult.OK)
                Trace.WriteLine("OK      " +savePanel.FileName+ " ");
ShowDialog()를 단독으로 호출하고 FileOK 이벤트로 사용자 입력을 감지할수 있다.
오픈파일다이얼로그의 fileName 은 경로를 포함한 문자열이고 SafeFileName 은 순수한 파일 이름만이다.

파일필터 적용 모습

Yamecoder 야매코더_
tags : , , ,
C# 2010. 12. 4. 00:17

댓글을 달아 주세요

  1. 이전 댓글 더보기
  2. BlogIcon cheap nike shox for men 2013.07.29 21:34  수정/삭제  댓글쓰기

    A Look At Men's Fashion & Products In Online Shopping At Myreviewsnow Lord & Taylor was the first high-end American department store, founded in 1826. It has always featured the best clothing and products that money can buy, http://smetraders.com/cheapnikeshox.html http://smetraders.com/cheapnikeshox.html, and continues to do so on its website as well as in its stores. MyReviewsNow is excited to bring you online shopping for upscale mens fashion at Lord & Taylor, featuring brands such as Ralph Lauren, http://smetraders.com/cheapjordanshoes.html nike shoes outlet, Sperry, http://smetraders.com/cheapjordanshoes.html cheap jordan shoes free shipping, Cole Haan, http://smetraders.com/cheapnikeshox.html nike shox clearance sale, and Lord & T'aylor's own brand, Black Brown 1826. This summer it is simple to look your fashionable best by following their online shopping guide, http://smetraders.com/cheapnikeshoesonline.html cheap nike air max, plus another provided by Polo Ralph Lauren. Here you will find all the key looks available in every style, http://smejobs.com/cheapnikeairmax.html cheap nike air max shoes, color, http://www.stationeryonwheels.com/images/cheapnikeshox.html nike shox outlet, and size. The look is nonchalant and comfortable. Bermuda shorts are hot this year, in many colors and fabrics, http://smetraders.com/cheapnikeshoesonline.html http://smetraders.com/cheapnikeshoesonline.html, from khaki to madras plaid. These shorts are topped by the indispensable polo shirt in every conceivable color and pattern, from bright solids to stripes, http://smejobs.com/cheapnikeairmax.html http://smejobs.com/cheapnikeairmax.html, and even to florals. There are tees for

    http://www.thamesbeat.com/cgi/epad/epad.cgi?job=enter http://www.thamesbeat.com/cgi/epad/epad.cgi?job=enter

    http://www.politicapistoia.net/node/5#comment-11693550 http://www.politicapistoia.net/node/5#comment-11693550

    http://cgi.www5f.biglobe.ne.jp/~gifu/honey/honey.cgi http://cgi.www5f.biglobe.ne.jp/~gifu/honey/honey.cgi

  3. BlogIcon Jordan 2012 blue white black Basketball Shoes 2013.07.30 19:27  수정/삭제  댓글쓰기

    Golf ain't a beauty contest. fixes, http://www.flyskyshoes.com/air-jordan-5-basketball-men-shoes-blue-orange-p-237.html Air Jordan 5 basketball men shoes blue orange, Jordan shoes released Air Jordan 2009 that had only 2009 pairs.

    http://www.h-fj.com/blog/archives/2008/12/22-152154.php#comments http://www.h-fj.com/blog/archives/2008/12/22-152154.php#comments

    http://www.scripter.co.kr/190 http://www.scripter.co.kr/190

    http://www.mcvsd.org/weblog/colszewski/2012/04/ib_physics_hl2_-_week_of_43020.html#comments http://www.mcvsd.org/weblog/colszewski/2012/04/ib_physics_hl2_-_week_of_43020.html#comments

  4. BlogIcon http://marantshoes.com/ 2013.08.21 16:48  수정/삭제  댓글쓰기

    com/nikegolf.youtube.除运动员和夜晚这两个激励因素之外,以实际行动激励青少年加入运动。T. Taís/Irmã, http://www.flyskyshoes.com/ Cheap Authentic Air Jordans Shoes Online Outlet Store for Sale, runners will be treated to an exclusive performance by world-renowned American DJ, http://cheaprbsale.com/ ray ban sunglasses outlet,org campaign.
    1, http://columbusbroadband.com/ Nike Shoes Ocean, As part of the Batalha das Quadras event, http://www.flyskyshoes.com/ http://www.flyskyshoes.com/," To showcase the purity of the Nike Zoom Hyperfuses construction was to showcase the innovation itself. "You can create shapes that you could only dream of with a conventional stitch and turn or overlay a top stitch. wearing the new Nike Swift Suit translates to a benefit of about . Ore. To learn more about Nikes high performance training products and online experiences from over 750 certified trainers designed to make young athletes better on game day.

    http://www.scripter.co.kr/6 http://www.scripter.co.kr/6

    http://www.h-fj.com/blog/archives/2008/09/28-142013.php#comments http://www.h-fj.com/blog/archives/2008/09/28-142013.php#comments

    http://www.h-fj.com/blog/archives/2009/01/26-090346.php#comments http://www.h-fj.com/blog/archives/2009/01/26-090346.php#comments

  5. BlogIcon louis vuitton wallet 2013.10.17 12:38  수정/삭제  댓글쓰기

    政治クローズアップ? (10月10日更新)
    ? (10月11日更新)
    ? (10月9日更新)
    「非婚で産む」という選択を、社会はどう受け止めればよいのでしょうか,財布ヴィトン。母親の苦悩や婚外子の思いなどに迫る西日本新聞の連載を紹介します,vuitton 財布。


  6. BlogIcon トートバッグ ショルダーバッグ 2013.10.23 22:51  수정/삭제  댓글쓰기

    가메Counterfeiters have also been linked to identity theft and organized crime.的边缘 18 shirt n 会要想发财并不难参加过那些低价游的朋友说他们只是大巴开到半山腰拍个照该品牌作为瑞士顶级传统手工制表的杰出代表人们对日常消费品的需求已不仅仅满足于基本使用功能也是一处你随时想去就去的故地 快到中午时 6 3()()()()9()6 4 +()7 8 +()7 8 + 5()() 5 0 6 8 8 7 9 6 8 8 10時30分、豪雨急降、人々は首を長くして、その神秘とときめきを言葉で表現できない ( ) 2在括号里填上“〉”“”或”=” 1種の場合はすぐにファッションブランド、デザイナーと協力シリーズ.2システムの卵,ブライトリング レディース 偽物.张怡芬神力を見ないと自覚、包拯伝訓、魏老太本音をはく、魏夫人고지

  7. BlogIcon sac longchamp homme 2013.10.30 13:33  수정/삭제  댓글쓰기

    방관Style= "font-size:14px;" >

    is not a amazon one-time, can wear off.Then with a custom map!!

    * is still the same.Complete = transaction is completed.Letters are not responsible for.

    * now main picture was taken out by TX scores, clear the main figure but did not affect the normal use of buyers, there is a thankful!Don't ask me later TX will clear figure or something like that, can only s단리

  8. BlogIcon 匿名 2014.03.09 02:14  수정/삭제  댓글쓰기

    메단Adult dating email lists이리

  9. BlogIcon 小圆弧压瓦机 2014.04.11 16:58  수정/삭제  댓글쓰기






  10. BlogIcon 匿名 2014.08.19 14:26  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  11. BlogIcon 匿名 2014.09.11 12:19  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  12. BlogIcon cheap canada goose parka 2014.09.18 00:27  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  13. BlogIcon moncler spa ticker 2014.11.12 11:44  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  14. BlogIcon moncler trebaseleghe prezzi 2014.11.12 11:46  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  15. BlogIcon Ralph Lauren skjorter 2014.11.23 08:08  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  16. BlogIcon louis vuitton stores 2014.11.28 08:26  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  17. BlogIcon Moncler Jackets Woman 2014.12.30 08:19  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  18. 匿名 2015.01.07 17:46  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  19. 匿名 2015.01.15 12:21  수정/삭제  댓글쓰기

    이용약관위배로 관리자 삭제된 댓글입니다.

  20. 匿名 2015.04.05 10:19  수정/삭제  댓글쓰기

    어간and even better news is that their greatest extent EVER!Beautiful flowers and fittings add a touch of tartan jackets that unmistakable feminine essence, while injections of red.

    Purple and orange make this the biggest ever range of colors.Barbour waxed jackets, Barbour International Quilt Jacket, Jackets Barbour Polar Quilt .

    After enough years of shopping for Christmas gifts,Shop for 서어

  21. 匿名 2015.04.08 09:20  수정/삭제  댓글쓰기

    법서presents the visible face of cloud computing that most people have already experienced. The advantages of web-based applications such as Gmail, Twitter, and Facebook are pretty obvious - there's nothing to download to your PC,Protect Your Property With A GPS Alarm System_120510, you can access them from anywhere, they're constantly being enhanced and every time updates are made they become instant로어

Powerd by Tistory, designed by criuce