<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8239546586347275958</id><updated>2024-09-08T09:06:53.877+08:00</updated><category term="小密技"/><category term="筆記"/><category term="tips"/><category term="C#"/><category term="程式"/><category term="windows"/><category term="軟體"/><category term="api"/><category term="winform"/><category term="碎碎唸全紀錄"/><category term="blog"/><category term="google"/><category term="msn"/><category term="webBrowser"/><category term="banao"/><category term="firefox"/><category term="iframe"/><category term="plurk"/><category term="噗浪"/><category term="外掛"/><category term="生活"/><category term="C#.vc#2005"/><category term="HFS"/><category term="SEO"/><category term="access"/><category term="addon"/><category term="chrome"/><category term="css"/><category term="file download"/><category term="flickr"/><category term="galleroo"/><category term="ie"/><category term="inputbox"/><category term="mdi"/><category term="mediaplayer"/><category term="mshtml"/><category term="rss"/><category term="statustextchanged"/><category term="thumbnail"/><category term="wav"/><category term="webclient"/><category term="winform 傳值"/><category term="バナ夫"/><category term="一般"/><category term="分析"/><category term="合併圖片"/><category term="圖片轉檔"/><category term="壓縮圖片"/><category term="字串"/><category term="廣告"/><category term="敗家全紀錄"/><category term="縮圖"/><category term="行銷"/><title type='text'>艾迪工作室</title><subtitle type='html'>網站建置、網站代管、部落格架設、伺服器代管、SEO優化、視窗程式開發...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.iteddie.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://www.iteddie.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>58</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8239546586347275958.post-1402976508118863069</id><published>2011-04-12T23:04:00.001+08:00</published><updated>2011-04-12T23:07:33.361+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="blog"/><category scheme="http://www.blogger.com/atom/ns#" term="SEO"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="分析"/><category scheme="http://www.blogger.com/atom/ns#" term="小密技"/><category scheme="http://www.blogger.com/atom/ns#" term="廣告"/><category scheme="http://www.blogger.com/atom/ns#" term="碎碎唸全紀錄"/><category scheme="http://www.blogger.com/atom/ns#" term="程式"/><category scheme="http://www.blogger.com/atom/ns#" term="行銷"/><category scheme="http://www.blogger.com/atom/ns#" term="軟體"/><title type='text'>課程投影片 - 喜思整合行銷</title><content type='html'>今天帶著緊張又興奮的心情，到喜思整合行銷，跟他們分享了一系列關於網路、廣告、行銷與資料彙整的課程。&lt;br /&gt;
&lt;br /&gt;
大家都很熱情的回應，上課狀況也相當不錯。可惜這次準備的東西稍多，不能每一個步驟詳細的跟大家分享，耽誤了大家下班時間，真是不好意思！下次有機會再分享給大家吧！&lt;br /&gt;
&lt;br /&gt;
謝謝大家的熱情捧場！&lt;br /&gt;
課程的投影片可以在這邊&lt;a href=&quot;https://docs.google.com/viewer?a=v&amp;amp;pid=explorer&amp;amp;chrome=true&amp;amp;srcid=0BwWjlE1USYOCOTZjYjgyNWUtYmI5NS00ZWViLTgzMzctNzMwZDVjMDg3ZmU1&amp;amp;hl=en&amp;amp;authkey=CI6dilk&quot;&gt;下載&lt;/a&gt;。&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.cstaiwan.com.tw/&quot;&gt;喜思整合行銷&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.cstaiwan.com.tw/&quot;&gt;&lt;/a&gt;IMC整合行銷策略規劃、競爭品牌情報蒐集與分析、消費者調查研究解析、廣告效果調查與判讀、創意策略提案與製作、公關議題管理與執行、消費者活動企劃與監督</content><link rel='replies' type='application/atom+xml' href='http://www.iteddie.com/feeds/1402976508118863069/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.iteddie.com/2011/04/blog-post.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/1402976508118863069'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/1402976508118863069'/><link rel='alternate' type='text/html' href='http://www.iteddie.com/2011/04/blog-post.html' title='課程投影片 - 喜思整合行銷'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/02633860263203255008</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8239546586347275958.post-5499616402708911495</id><published>2011-02-01T21:35:00.000+08:00</published><updated>2011-02-01T21:35:39.653+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="一般"/><title type='text'>新年快樂，恭喜發財！</title><content type='html'>祝大家&lt;span class=&quot;uy1&quot;&gt;新年&lt;/span&gt;快樂~&lt;br /&gt;
&lt;br /&gt;
&lt;img border=&quot;0&quot; height=&quot;168&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoEaO__4ZjgSBaqiR9EgUFAWrRqlrKT7bQwlEvbp06SFtNRrtVynmrtxAeB3z0UTe-L-_5oaeGVRikjz9IiWYMyo8fq7Tk_3yiRQBSXuiJN3gQb47pt5jf0MIYF6NmEdFQgEyRZY2laj_q/s320/%25E8%2589%25BE%25E8%25BF%25AA3.png&quot; style=&quot;border-radius: 10px 10px;&quot; width=&quot;320&quot; /&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.iteddie.com/feeds/5499616402708911495/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.iteddie.com/2010/12/2011-po.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/5499616402708911495'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/5499616402708911495'/><link rel='alternate' type='text/html' href='http://www.iteddie.com/2010/12/2011-po.html' title='新年快樂，恭喜發財！'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoEaO__4ZjgSBaqiR9EgUFAWrRqlrKT7bQwlEvbp06SFtNRrtVynmrtxAeB3z0UTe-L-_5oaeGVRikjz9IiWYMyo8fq7Tk_3yiRQBSXuiJN3gQb47pt5jf0MIYF6NmEdFQgEyRZY2laj_q/s72-c/%25E8%2589%25BE%25E8%25BF%25AA3.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8239546586347275958.post-5081379835093986174</id><published>2011-01-15T22:13:00.000+08:00</published><updated>2011-01-19T17:54:50.362+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="api"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="plurk"/><category scheme="http://www.blogger.com/atom/ns#" term="winform"/><category scheme="http://www.blogger.com/atom/ns#" term="噗浪"/><category scheme="http://www.blogger.com/atom/ns#" term="外掛"/><category scheme="http://www.blogger.com/atom/ns#" term="小密技"/><category scheme="http://www.blogger.com/atom/ns#" term="程式"/><category scheme="http://www.blogger.com/atom/ns#" term="軟體"/><title type='text'>C# Plurk API 自動發文機器人</title><content type='html'>&lt;div class=&quot;separator&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZA6JI4Jne8LVRvB0hC6kCLqW6yp1xkzfd1TkHFfEhxsTXSLYrMipSgxvLzdnhQz230Db0ZrskU1GVA1vrtxXywp9JhGse1S-GYS9EKmMyhrwOk58gFJlAYqHtD1msXyIUFZ2W3_dkm1s/s320/plurk.png&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;哈哈！好久沒有來PO文章了~~~&lt;br /&gt;
&lt;br /&gt;
長蜘蛛網了!&lt;br /&gt;
&lt;br /&gt;
有時候人太忙~~卡瑪值就默默地一直降一直降一直降一直降一直降~&lt;br /&gt;
&lt;br /&gt;
降個不停~~&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
然後~&lt;br /&gt;
&lt;br /&gt;
所以~&lt;br /&gt;
&lt;br /&gt;
接著~&lt;br /&gt;
&lt;br /&gt;
就有下面的簡易輔助G器人的誕生了~&lt;br /&gt;
&lt;br /&gt;
其實網路上早就一堆人有分享了XDDD&lt;br /&gt;
&lt;br /&gt;
只是喜歡用自己做的程式XDD&lt;br /&gt;
&lt;br /&gt;
有一種快感~~&amp;gt;///&amp;lt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;260&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWb6nmxDesXO2atql-IJC5LwNKbQPyGU810WGA2WjSgkeNoIhrJOlIeVha-VWQO5tSLaG6rc8xNbZtcd0l98BUgwP4T-RJMUaAk1YRpDYmAwZTQu-Ye_2vsQWgby2K82TMyf2Gp74Ma4I/s320/plurk1.png&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;哈~這就是我的風格!!&lt;br /&gt;
&lt;br /&gt;
程式的開始畫面~~~&lt;br /&gt;
&lt;br /&gt;
可以看到左手邊的大頭娃娃~乃是工作室的吉祥物阿鳴是也~~&lt;br /&gt;
&lt;br /&gt;
還沒登入之前都是他的舞台~&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;259&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgF7hsBSdMPm6IoROVITZQlmRMXjWnJkumJ15xG5uyJoYzyCq3_8XEyEc3pFakodGo42my_l4XXuF9c__sj1N0pXwOQQyrrm7zUnISMyOewzIQpBNI9dXE9ynUHiXbViu8emVu6NbYjJiI/s320/plurk2.png&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;登入以後~~&lt;br /&gt;
&lt;br /&gt;
就讀取個人資料~&lt;br /&gt;
&lt;br /&gt;
然後可以選擇整點報時功能~~&lt;br /&gt;
&lt;br /&gt;
手動發文功能~~&lt;br /&gt;
&lt;br /&gt;
自動定時發文功能~~&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-7HMAxOwuIfIyo74-H8Yc1WYYyJ2Al0HzAVdq07hWzClIQLAr6O9XJew6hjL9DpFcGbO4ckKUnfmF7o-iPVT-O7PQsv1u2ugF8e5zrwVabU6uS8PF-XvDjKHC6gAn6JSyuyrlacdJlUI/s1600/plurk3.png&quot; /&gt;&lt;/div&gt;平常就把它縮小~~&lt;br /&gt;
&lt;br /&gt;
他就會自動躲到角落去~&lt;br /&gt;
&lt;br /&gt;
不會妨礙日常起居~~&lt;br /&gt;
&lt;br /&gt;
好棒啊!!!!!!!!!!!!!!&lt;br /&gt;
&lt;br /&gt;
收工~吃飯~!&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNuPZ62FRaQk2m9pJX5V1cxskaxFoqNEPSGQWuW9XbeXKnigSvdtnQDm_O1_g17DYegG554aa-bqAVIQ4eIurIzv0hjiQPkga8w4YRwQyOh9cPhcdRvg3p-RHlKFdfvr3Lpu8AqLfaiZ62/s1600/%25E5%25B4%2587%25E6%258B%259C+%25280%2529.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;189&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNuPZ62FRaQk2m9pJX5V1cxskaxFoqNEPSGQWuW9XbeXKnigSvdtnQDm_O1_g17DYegG554aa-bqAVIQ4eIurIzv0hjiQPkga8w4YRwQyOh9cPhcdRvg3p-RHlKFdfvr3Lpu8AqLfaiZ62/s200/%25E5%25B4%2587%25E6%258B%259C+%25280%2529.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.iteddie.com/feeds/5081379835093986174/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.iteddie.com/2011/01/c-plurk-api.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/5081379835093986174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/5081379835093986174'/><link rel='alternate' type='text/html' href='http://www.iteddie.com/2011/01/c-plurk-api.html' title='C# Plurk API 自動發文機器人'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZA6JI4Jne8LVRvB0hC6kCLqW6yp1xkzfd1TkHFfEhxsTXSLYrMipSgxvLzdnhQz230Db0ZrskU1GVA1vrtxXywp9JhGse1S-GYS9EKmMyhrwOk58gFJlAYqHtD1msXyIUFZ2W3_dkm1s/s72-c/plurk.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8239546586347275958.post-531770157555133044</id><published>2010-11-16T03:25:00.000+08:00</published><updated>2011-01-19T18:03:14.134+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="tips"/><category scheme="http://www.blogger.com/atom/ns#" term="winform"/><category scheme="http://www.blogger.com/atom/ns#" term="合併圖片"/><category scheme="http://www.blogger.com/atom/ns#" term="小密技"/><category scheme="http://www.blogger.com/atom/ns#" term="程式"/><category scheme="http://www.blogger.com/atom/ns#" term="筆記"/><title type='text'>C# 合併圖片</title><content type='html'>&lt;div&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicv2M_O8QbDBU1bpAvLeyjuLTjgI1ybQ2V66KY6VEMV6JMXPud6YD6P5ZRS1AeoShsSfEjZDibb80CZd5kCM3gLhaS9672VaKBClvu0tBZW4IDjxAq6eTlFLAhxumIwUPV870YIPcI6fZ1/s1600/images+%25285%2529.jpg&quot; /&gt;&lt;/div&gt;網頁越來越慢了=口=&lt;br /&gt;
圖片放太多~踏碼ㄉ...&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
MSDN每天逛~今天才發現他們的圖片只有一張而且好長一張=口=&lt;br /&gt;
&lt;div&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigEqfDGVUfSyeWvNafbpP4TunIde8OeKgb945081vZYgYeILs56QtJbEAEsHY1MAwHq0ThZ24aKcxc1Dn3n_Y0XDZhjsslfVZFa40sfnFi-UB2kVIz9ityPaIy6nd9Vdj3M6U4dF5GQSO-/s640/msdnnnn.jpg&quot; width=&quot;500&quot; /&gt;&lt;/div&gt;&lt;br /&gt;
是真的很長~有2671 * 96 這麼長=口=&lt;br /&gt;
難怪跑這麼快~圖片只要讀取一張~就結束了=口=&lt;br /&gt;
好聰明喔=口=&lt;br /&gt;
而且長長的一張~檔案也才29.8KB&lt;br /&gt;
光是省下來的HTTP Request次數~都可以吃一頓貴族世家了=口=&lt;br /&gt;
&lt;br /&gt;
所以我也要來把圖片弄得超長~&lt;br /&gt;
而且我發現平平是PNG格式~&lt;br /&gt;
C#壓出來的大小~跟ACDSee壓出來的大小~&lt;br /&gt;
ACDSee小很多耶=口=&lt;br /&gt;
ACDSee好棒=口=&lt;br /&gt;
以上廣告&lt;br /&gt;
------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot; title=&quot;程式碼&quot;&gt;/// &lt;summary&gt;
/// 合併圖片
/// &lt;/summary&gt;
/// &lt;param name=&quot;source&quot; /&gt;要合併的原始圖
/// &lt;param name=&quot;img&quot; /&gt;合併後的大圖
private void MergeImg(Image source, ref Image img)
{
int width = source.Width + img.Width;
int height = Math.Max(source.Height,img.Height);

Image tmp = new Bitmap(width, height);
Graphics g = Graphics.FromImage(tmp);

g.Clear(Color.Transparent);
g.DrawImage(img, 0, 0);
g.DrawImage(source, img.Width, 0);

img = tmp;
g.Dispose();
}
&lt;/pre&gt;&lt;br /&gt;
然後我就狂合併&lt;br /&gt;
不知道想把我的電腦逼到甚麼地步*0*&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh26TwVoohvJCbpb6jDxwG9LKbqAw0ZRqdLbBUKSFgu-kZPtfSKx7iYv_daG6URZmqXCmyKmevW4Rj-w6RghSQ7yMTSP_juXSRi_vlrJGDTzknZl3N6YkPFRIYEAr9pDd66TaoVwf6FENZZ/s640/longpicture.jpg&quot; width=&quot;500&quot; /&gt;&lt;/div&gt;&lt;br /&gt;
哈哈哈哈哈哈哈哈!!! 14497 * 800 !!!!!!!!!!!!!!!!!!!!!!!!&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSYJ9xXy-inbOajq2b4d3a6HVIQVSdlmwlWsJaHl1-ZIVVpvlRf2Xp8eEzZnUkDR-E3sLWBIpUFJE1QFUDybGK_paYYygbkOVfDaSIzIjEQtK5b4ubfo72zge-Qp7mOaCGnOZRM0uQ9qB7/s1600/%25E9%25A9%259A%25E5%259A%2587+%252819%2529.jpg&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpnaUkJrcQqBrMlrA_0OztDI2KnJgROzaZ-nHsiLXvDn8PBTewprSxz5EMPUn4YhWU6V48ZrGRvnkOHBeARCKc443G7SSqS6MDZea7ddr8sIaKv7XTEiPaqrYJV5-x2vnyWEFrdsWjDNuu/s640/error.jpg&quot; width=&quot;500&quot; /&gt;&lt;/div&gt;我把我的電腦逼到出現錯誤=口=&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5L713TKZTdrDtbFfBltk61lnfY9IcwHS9O46WKArX2J44dAlXp_72gUHANGYntqblDfeaw6mwzgMb8LUof6arXEF_n2mj8ukSlF4F_fJD42CuHISRPJXXWmhk3kLdC_tI9Sy38sLzUt_e/s1600/error.jpg&quot; width=&quot;500&quot;/&gt;&lt;/div&gt;&lt;br /&gt;
出錯時的圖片大小成長到了 88850 * 50..........................&lt;br /&gt;
&lt;br /&gt;
差點就破十萬了~嘖!!!&lt;br /&gt;
&lt;br /&gt;
整個電腦幾乎都不能動了~好可怕=口=&lt;br /&gt;
&lt;br /&gt;
----------&lt;br /&gt;
然後我又在網路上看到有一個人也是在整電腦~&lt;br /&gt;
方法好有創意~&lt;br /&gt;
&lt;a href=&quot;http://www.dotblogs.com.tw/larrynung/archive/2009/07/31/9758.aspx&quot;&gt;網址&lt;/a&gt;&lt;br /&gt;
他是用FlowLayoutPanel控制項搭配PictureBox控制項...&lt;br /&gt;
不停的讀取圖片到PictureBox然後丟進去FlowLayoutPanel&lt;br /&gt;
&lt;br /&gt;
超多物件超帥的=口=&lt;br /&gt;
&lt;br /&gt;
然後丟完以後如果還沒當機~&lt;br /&gt;
那只要三行就收工了=口=&lt;br /&gt;
前提是還沒當機=口=&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot; title=&quot;程式碼&quot;&gt;Bitmap b = new Bitmap(flowLayoutPanel1.Width, flowLayoutPanel1.Height);
flowLayoutPanel1.DrawToBitmap(b, flowLayoutPanel1.ClientRectangle);
b.Save(saveFileDialog1.FileName);
&lt;/pre&gt;&lt;br /&gt;
心有餘悸~這個方法太有創意了!!!!</content><link rel='replies' type='application/atom+xml' href='http://www.iteddie.com/feeds/531770157555133044/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.iteddie.com/2010/11/c.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/531770157555133044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/531770157555133044'/><link rel='alternate' type='text/html' href='http://www.iteddie.com/2010/11/c.html' title='C# 合併圖片'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicv2M_O8QbDBU1bpAvLeyjuLTjgI1ybQ2V66KY6VEMV6JMXPud6YD6P5ZRS1AeoShsSfEjZDibb80CZd5kCM3gLhaS9672VaKBClvu0tBZW4IDjxAq6eTlFLAhxumIwUPV870YIPcI6fZ1/s72-c/images+%25285%2529.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8239546586347275958.post-8245824786017917631</id><published>2010-11-16T02:30:00.000+08:00</published><updated>2011-01-19T17:56:05.869+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="winform"/><category scheme="http://www.blogger.com/atom/ns#" term="圖片轉檔"/><category scheme="http://www.blogger.com/atom/ns#" term="壓縮圖片"/><category scheme="http://www.blogger.com/atom/ns#" term="小密技"/><category scheme="http://www.blogger.com/atom/ns#" term="程式"/><category scheme="http://www.blogger.com/atom/ns#" term="筆記"/><title type='text'>C# 轉換圖片格式</title><content type='html'>&lt;div&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQ19FjfDKWlkEYT-YCgL0ucTydZIKenvgfjq658ZJrCei1FhgyB2rCDJSiEGTKuzxskiOZoxlHk1f5lcAAd7-xndzWgfAQ1tGSs8jB2kyGeJde4NVYElY62KC2FZik_uJWOL9-2K62CGY6/s1600/C_sharp.jpg&quot; /&gt;&lt;/div&gt;雖然市面上已經很多轉圖片格式的軟體了=口=&lt;br /&gt;
&lt;br /&gt;
但是有時候~自己寫還是會比較貼近自己的需求=口=&lt;br /&gt;
&lt;br /&gt;
不過大部分的時候還是ACDSee萬歲=口=&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h1 class=&quot;title&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 1.769em; font-style: normal; font-variant: normal; font-weight: bold; line-height: normal; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Image.Save 方法 (String, ImageFormat)&lt;/h1&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;將這個影像以指定的格式儲存至指定的檔案。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px; font-weight: bold;&quot;&gt;參數&lt;/span&gt;&lt;br /&gt;
&lt;h4 class=&quot;subHeading&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 1em; font-weight: bold;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-size: 13px; font-weight: normal;&quot;&gt;&lt;br /&gt;
&lt;dl paramname=&quot;filename&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;dt&gt;&lt;span class=&quot;parameter&quot;&gt;filename&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;字串，包含要儲存這個&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/system.drawing.image(v=VS.80).aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;Image&lt;/a&gt;&amp;nbsp;之目的檔案的名稱。&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname=&quot;format&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;dt&gt;&lt;span class=&quot;parameter&quot;&gt;format&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;這個&amp;nbsp;&lt;b&gt;Image&lt;/b&gt;&amp;nbsp;的&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/system.drawing.imaging.imageformat(v=VS.80).aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;ImageFormat&lt;/a&gt;。&lt;/dd&gt;&lt;/dl&gt;&lt;/span&gt;&lt;/h4&gt;&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot; title=&quot;程式碼&quot;&gt;//path是圖片的路徑
Image img = Image.FromFile(path);

//存成GIF
img.Save(SavePath + Filename + &quot;.gif&quot;, System.Drawing.Imaging.ImageFormat.Gif);

//存成BMP
img.Save(SavePath + Filename + &quot;.bmp&quot;, System.Drawing.Imaging.ImageFormat.Bmp);

//存成PNG
img.Save(SavePath + Filename + &quot;.png&quot;, System.Drawing.Imaging.ImageFormat.Png);

//存成ICON
img.Save(SavePath + Filename + &quot;.ico&quot;, System.Drawing.Imaging.ImageFormat.Icon);

//存成JPEG
img.Save(SavePath + Filename + &quot;.jpg&quot;, System.Drawing.Imaging.ImageFormat.Jpeg);
&lt;/pre&gt;&lt;br /&gt;
然後因為Jpeg檔還可以壓縮品質~~&lt;br /&gt;
痾~其實可能每種格式都可以壓縮吧....&lt;br /&gt;
只是我只會JPEG的=口=&lt;br /&gt;
夭壽orz...&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot; title=&quot;程式碼&quot;&gt;/// &lt;summary&gt;
/// 儲存圖片(JPG)
/// &lt;/summary&gt;
/// &lt;param name=&quot;img&quot;&gt;要儲存的圖片&lt;/param&gt;
/// &lt;param name=&quot;qulity&quot;&gt;品質(0~100)&lt;/param&gt;
/// &lt;param name=&quot;path&quot;&gt;儲存路徑&lt;/param&gt;
private void SaveAsJPEG(Image img, int qulity, string path)
{
EncoderParameters myEncoderParameters = new EncoderParameters(1);
EncoderParameter myEncoderParameter = new EncoderParameter(System.Drawing.Imaging.Encoder.Quality, qulity);
myEncoderParameters.Param[0] = myEncoderParameter;

img.Save(path, GetEncoder(ImageFormat.Jpeg), myEncoderParameters);
}

/// &lt;summary&gt;
/// 取得已安裝的影像 Codec 的相關資訊
/// &lt;/summary&gt;
/// &lt;param name=&quot;format&quot;&gt;System.Drawing.Imaging.ImageFormat&lt;/param&gt;
/// &lt;returns&gt;System.Drawing.Imaging.ImageCodeInfo&lt;/returns&gt;
private ImageCodecInfo GetEncoder(ImageFormat format)
{
ImageCodecInfo[] codecs = ImageCodecInfo.GetImageDecoders();

foreach (ImageCodecInfo codec in codecs)
{
if (codec.FormatID == format.Guid)
{
return codec;
}
}
return null;
}
&lt;/pre&gt;&lt;br /&gt;
收工~買菜!</content><link rel='replies' type='application/atom+xml' href='http://www.iteddie.com/feeds/8245824786017917631/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.iteddie.com/2010/11/c_15.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/8245824786017917631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/8245824786017917631'/><link rel='alternate' type='text/html' href='http://www.iteddie.com/2010/11/c_15.html' title='C# 轉換圖片格式'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQ19FjfDKWlkEYT-YCgL0ucTydZIKenvgfjq658ZJrCei1FhgyB2rCDJSiEGTKuzxskiOZoxlHk1f5lcAAd7-xndzWgfAQ1tGSs8jB2kyGeJde4NVYElY62KC2FZik_uJWOL9-2K62CGY6/s72-c/C_sharp.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8239546586347275958.post-1686503394943049287</id><published>2010-11-16T01:57:00.000+08:00</published><updated>2011-01-19T18:12:56.822+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="thumbnail"/><category scheme="http://www.blogger.com/atom/ns#" term="tips"/><category scheme="http://www.blogger.com/atom/ns#" term="winform"/><category scheme="http://www.blogger.com/atom/ns#" term="小密技"/><category scheme="http://www.blogger.com/atom/ns#" term="程式"/><category scheme="http://www.blogger.com/atom/ns#" term="筆記"/><category scheme="http://www.blogger.com/atom/ns#" term="縮圖"/><title type='text'>C# 製作縮圖</title><content type='html'>&lt;div&gt;&lt;img border=&quot;0&quot; height=&quot;211&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_40nUoZ9YCEt7utgoaX6Q5geRH2fl4G4H3D1EwT6okTb_ShV8YFMqeDnBg88vdq5Cb1OLTPZT5cYON5h1mAWFeKfn3NIYOtH2EVZur2tfwh7zvsdD5hV1rmxQ0usxEQ0656lLDuN63Xjg/s320/Cplus_CSharp.jpg&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-small;&quot;&gt;縮圖&lt;/span&gt;縮圖&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;縮圖&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
C#做縮圖好像蠻簡單的&lt;br /&gt;
筆記一下!!!&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h1 class=&quot;title&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 1.769em; font-style: normal; font-variant: normal; font-weight: bold; line-height: normal; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Image.GetThumbnailImage 方法&lt;/h1&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;傳回這個&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/system.drawing.image(v=VS.80).aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;Image&lt;/a&gt;&amp;nbsp;的縮圖。&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;&lt;b&gt;命名空間：&lt;/b&gt;&amp;nbsp;System.Drawing&lt;br /&gt;
&lt;b&gt;組件：&lt;/b&gt;&amp;nbsp;System.Drawing (在 system.drawing.dll 中)&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4 class=&quot;subHeading&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 1em; font-weight: bold;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;參數&lt;/h4&gt;&lt;dl paramname=&quot;thumbWidth&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;dt&gt;&lt;span class=&quot;parameter&quot;&gt;thumbWidth&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;要求的縮圖影像的寬度 (單位為像素)。&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname=&quot;thumbHeight&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;dt&gt;&lt;span class=&quot;parameter&quot;&gt;thumbHeight&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;要求的縮圖影像的高度 (單位為像素)。&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname=&quot;callback&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;dt&gt;&lt;span class=&quot;parameter&quot;&gt;callback&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/system.drawing.image.getthumbnailimageabort(v=VS.80).aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;Image.GetThumbnailImageAbort&lt;/a&gt;&amp;nbsp;委派。在 GDI+ 1.0 版中，不使用委派。即使如此，您必須建立委派，並在這個參數中傳遞參考給該委派。&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname=&quot;callbackData&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;dt&gt;&lt;span class=&quot;parameter&quot;&gt;callbackData&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;必須是&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/system.intptr.zero(v=VS.80).aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;Zero&lt;/a&gt;。&lt;/dd&gt;&lt;/dl&gt;&lt;br /&gt;
&lt;h4 class=&quot;subHeading&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 1em; font-weight: bold;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;傳回值&lt;/h4&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;&lt;b xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;Image&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;，表示縮圖。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot; title=&quot;程式碼&quot;&gt;Image img = Image.FromFile(&quot;PATH&quot;);
img.GetThumbnailImage(Width, Height, null, IntPtr.Zero).Save(&quot;thumb_&quot; + filename + ext);
&lt;/pre&gt;&lt;br /&gt;
還有另一種方法是用Graphic的DrawImage()&lt;br /&gt;
威力比較強大~&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h1 class=&quot;title&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 1.769em; font-style: normal; font-variant: normal; font-weight: bold; line-height: normal; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Graphics.DrawImage&amp;nbsp;方法&lt;/h1&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h1 class=&quot;title&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 1.769em; font-style: normal; font-variant: normal; font-weight: bold; line-height: normal; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;(Image, Rectangle, Rectangle, GraphicsUnit)&lt;/h1&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;以指定的大小，在指定的位置繪製所指定&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;&lt;b&gt;Image&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;之指定部分。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h4 class=&quot;subHeading&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 1em; font-weight: bold;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;參數&lt;/h4&gt;&lt;dl paramname=&quot;image&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;dt&gt;&lt;span class=&quot;parameter&quot;&gt;image&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;要繪製的&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/system.drawing.image(v=VS.80).aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;Image&lt;/a&gt;。&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname=&quot;destRect&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;dt&gt;&lt;span class=&quot;parameter&quot;&gt;destRect&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/system.drawing.rectangle(v=VS.80).aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;Rectangle&lt;/a&gt;&amp;nbsp;結構，指定繪製影像的位置和大小。縮放影像來符合矩形。&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname=&quot;srcRect&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;dt&gt;&lt;span class=&quot;parameter&quot;&gt;srcRect&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;b&gt;Rectangle&lt;/b&gt;&amp;nbsp;結構，指定&amp;nbsp;&lt;span class=&quot;parameter&quot;&gt;image&lt;/span&gt;&amp;nbsp;物件要繪製的部分。&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname=&quot;srcUnit&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;dt&gt;&lt;span class=&quot;parameter&quot;&gt;srcUnit&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/system.drawing.graphicsunit(v=VS.80).aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;GraphicsUnit&lt;/a&gt;&amp;nbsp;列舉型別的成員，指定&amp;nbsp;&lt;span class=&quot;parameter&quot;&gt;srcRect&lt;/span&gt;&amp;nbsp;參數所使用的測量單位。&lt;/dd&gt;&lt;/dl&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot; title=&quot;程式碼&quot;&gt;//設定畫布大小
Image tmp = new Bitmap(Width, Height);
Graphics g = Graphics.FromImage(tmp);

//這邊不是重點
g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.High;
g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
g.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality;

//設定畫布的底色~透明或白色之類
g.Clear(Color.Transparent);

//把來源圖片轉換成指定的大小畫到畫布上面
g.DrawImage(sourceImg, new Rectangle(0, 0, Width, Height), new Rectangle(0, 0, sourceImg.Width, sourceImg.Height), GraphicsUnit.Pixel);

g.Dispose();

tmp.Save(&quot;thumb_&quot; + filename + ext);
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
收工~吃飯!</content><link rel='replies' type='application/atom+xml' href='http://www.iteddie.com/feeds/1686503394943049287/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.iteddie.com/2010/11/c_3813.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/1686503394943049287'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/1686503394943049287'/><link rel='alternate' type='text/html' href='http://www.iteddie.com/2010/11/c_3813.html' title='C# 製作縮圖'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_40nUoZ9YCEt7utgoaX6Q5geRH2fl4G4H3D1EwT6okTb_ShV8YFMqeDnBg88vdq5Cb1OLTPZT5cYON5h1mAWFeKfn3NIYOtH2EVZur2tfwh7zvsdD5hV1rmxQ0usxEQ0656lLDuN63Xjg/s72-c/Cplus_CSharp.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8239546586347275958.post-2768635582755459208</id><published>2010-11-12T22:23:00.000+08:00</published><updated>2011-01-19T18:13:39.082+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="file download"/><category scheme="http://www.blogger.com/atom/ns#" term="webclient"/><category scheme="http://www.blogger.com/atom/ns#" term="小密技"/><category scheme="http://www.blogger.com/atom/ns#" term="程式"/><category scheme="http://www.blogger.com/atom/ns#" term="筆記"/><title type='text'>C# 簡單的檔案下載(Webclient)</title><content type='html'>&lt;div&gt;&lt;img border=&quot;0&quot; height=&quot;285&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEio2TjSPwAdEZrGPDN-loZ3G_aLJNCSkWvgeALIHcBOxjkc0FTWnm19lfFgcuduzHas1ygaOWectV5C1r0_oSZuHhUn950DVyODbWDLeeO2KTQmZnr8mLj2nqQD9sLDzYhB3why4kkZiM3L/s320/5430x383.jpg&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;比較陽春的下載檔案方法&lt;br /&gt;
不過不能用timeout~&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h1 class=&quot;title&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 1.769em; font-style: normal; font-variant: normal; font-weight: bold; line-height: normal; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;WebClient.DownloadFile 方法 (String, String)&lt;/h1&gt;&lt;h1 class=&quot;title&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 1.769em; font-style: normal; font-variant: normal; font-weight: bold; line-height: normal; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;WebClient.DownloadFile 方法 (Uri, String)&lt;/h1&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;將具有指定之 URI 的資源下載指本機檔案&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;brush: csharp&quot; title=&quot;程式碼&quot;&gt;public void DownloadFile (
Uri address,
string fileName
)
&lt;/pre&gt;&lt;h4 class=&quot;subHeading&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 1em; font-weight: bold;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;參數&lt;/h4&gt;&lt;dl paramname=&quot;address&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;dt&gt;&lt;span class=&quot;parameter&quot;&gt;address&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;指定為&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/system.string(v=VS.80).aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;String&lt;/a&gt;&amp;nbsp;的 URI，可以從其中下載資料。&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname=&quot;fileName&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;dt&gt;&lt;span class=&quot;parameter&quot;&gt;fileName&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;要接收資料的本機檔案名稱。&lt;/dd&gt;&lt;/dl&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h1 class=&quot;title&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 1.769em; font-style: normal; font-variant: normal; font-weight: bold; line-height: normal; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;WebClient.DownloadFileAsync 方法 (Uri, String)&lt;/h1&gt;&lt;div&gt;&lt;h1 class=&quot;title&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 1.769em; font-style: normal; font-variant: normal; font-weight: bold; line-height: normal; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;WebClient.DownloadFileAsync 方法 (Uri, String, Object)&lt;/h1&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;將具有指定之 URI 的資源下載至本機檔案。這個方法不會封鎖呼叫執行緒。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot; title=&quot;程式碼&quot;&gt;public void DownloadFileAsync (
Uri address,
string fileName
)
&lt;/pre&gt;&lt;h4 class=&quot;subHeading&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 1em; font-weight: bold;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;參數&lt;/h4&gt;&lt;dl paramname=&quot;address&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;dt&gt;&lt;span class=&quot;parameter&quot;&gt;address&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;要下載之資源的 URI。&lt;/dd&gt;&lt;/dl&gt;&lt;dl paramname=&quot;fileName&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;dt&gt;&lt;span class=&quot;parameter&quot;&gt;fileName&lt;/span&gt;&lt;/dt&gt;
&lt;dd&gt;要置於本機電腦之檔案的名稱。&lt;/dd&gt;&lt;/dl&gt;&lt;br /&gt;
&lt;dt style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;&lt;span class=&quot;parameter&quot;&gt;userToken&lt;/span&gt;&lt;/dt&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;dd style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;使用者定義的物件，這個物件會在非同步作業完成時傳遞至叫用的方法。&lt;/dd&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot; title=&quot;程式碼&quot;&gt;using System.Net;
&lt;/pre&gt;&lt;pre class=&quot;brush: csharp&quot; title=&quot;程式碼&quot;&gt;private void btnDownload_Click(object sender, EventArgs e)
{
WebClient webClient = new WebClient();
webClient.DownloadFileCompleted += new AsyncCompletedEventHandler(Completed);
webClient.DownloadProgressChanged += new DownloadProgressChangedEventHandler(ProgressChanged);
webClient.DownloadFileAsync(new Uri(&quot;http://mysite.com/myfile.txt&quot;), @&quot;c:\myfile.txt&quot;);
}

private void ProgressChanged(object sender, DownloadProgressChangedEventArgs e)
{
progressBar.Value = e.ProgressPercentage;
}

private void Completed(object sender, AsyncCompletedEventArgs e)
{
MessageBox.Show(&quot;Download completed!&quot;);
}
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.iteddie.com/feeds/2768635582755459208/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.iteddie.com/2010/11/c-webclient.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/2768635582755459208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/2768635582755459208'/><link rel='alternate' type='text/html' href='http://www.iteddie.com/2010/11/c-webclient.html' title='C# 簡單的檔案下載(Webclient)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEio2TjSPwAdEZrGPDN-loZ3G_aLJNCSkWvgeALIHcBOxjkc0FTWnm19lfFgcuduzHas1ygaOWectV5C1r0_oSZuHhUn950DVyODbWDLeeO2KTQmZnr8mLj2nqQD9sLDzYhB3why4kkZiM3L/s72-c/5430x383.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8239546586347275958.post-8722646865346006078</id><published>2010-11-03T09:15:00.000+08:00</published><updated>2011-01-19T17:53:04.804+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="api"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="chrome"/><category scheme="http://www.blogger.com/atom/ns#" term="firefox"/><category scheme="http://www.blogger.com/atom/ns#" term="ie"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="筆記"/><title type='text'>IE和Firefox和Chrome的分頁class name</title><content type='html'>&lt;div&gt;&lt;img border=&quot;0&quot; height=&quot;202&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7_nfdA5RFKvvPzC7INR5Un_5Jv6WtGRb7KoklI6R-FjtBRnvuJypT_J2KOim44L5luMJBRJIBFFl59ET4eAHzdKKLcbm7JAVHOn6R_RxI7tYECldmCh-C0a3k13zLddYhcVOUHaWVEMfb/s320/API%2520Logo.jpg&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;&lt;br /&gt;IE的是TabThumbnailWindow&lt;br /&gt;&lt;br /&gt;Firefox的是MozillaUIWindowClass&lt;br /&gt;&lt;br /&gt;Chrome的是Chrome_WidgetWin_0&lt;br /&gt;&lt;br /&gt;以上筆記! 啾咪~</content><link rel='replies' type='application/atom+xml' href='http://www.iteddie.com/feeds/8722646865346006078/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.iteddie.com/2010/11/iefirefoxchromeclass-name.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/8722646865346006078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/8722646865346006078'/><link rel='alternate' type='text/html' href='http://www.iteddie.com/2010/11/iefirefoxchromeclass-name.html' title='IE和Firefox和Chrome的分頁class name'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7_nfdA5RFKvvPzC7INR5Un_5Jv6WtGRb7KoklI6R-FjtBRnvuJypT_J2KOim44L5luMJBRJIBFFl59ET4eAHzdKKLcbm7JAVHOn6R_RxI7tYECldmCh-C0a3k13zLddYhcVOUHaWVEMfb/s72-c/API%2520Logo.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8239546586347275958.post-7956745535338677293</id><published>2010-10-27T05:52:00.000+08:00</published><updated>2011-01-19T17:53:04.806+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="banao"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="筆記"/><title type='text'>C# 不能移動的視窗</title><content type='html'>&lt;div&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyKWNda36zWog-30blEFhVa0Xcz2cNed45Z7btzsPe-BcIlNfIvFPmf102ANgQOLJzEIrTBJi41C6-UWkpwn8xXgBBctaFDX82ClKXxi0ne2iCudOj3tJcHTAZMS5WJzHUJZ6M6mpk7U35/s320/DSCF35142_2.jpg&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;今天想做一個不能移動的視窗...&lt;br /&gt;想了老半天 難道真的只能靠WndProc()了嗎Orz...&lt;br /&gt;&lt;br /&gt;後來睡醒突然想到就把視窗的ControlBox取消&lt;br /&gt;然後做一個偽．ControlBox就好了啊~&lt;br /&gt;而且還可以做得比較漂亮呢~啾咪~*&lt;br /&gt;&lt;br /&gt;順便工商服務一下~雖然香蕉先生沒有腳~可是它可以騎馬喔!!!!!</content><link rel='replies' type='application/atom+xml' href='http://www.iteddie.com/feeds/7956745535338677293/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.iteddie.com/2010/10/c.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/7956745535338677293'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/7956745535338677293'/><link rel='alternate' type='text/html' href='http://www.iteddie.com/2010/10/c.html' title='C# 不能移動的視窗'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyKWNda36zWog-30blEFhVa0Xcz2cNed45Z7btzsPe-BcIlNfIvFPmf102ANgQOLJzEIrTBJi41C6-UWkpwn8xXgBBctaFDX82ClKXxi0ne2iCudOj3tJcHTAZMS5WJzHUJZ6M6mpk7U35/s72-c/DSCF35142_2.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8239546586347275958.post-3380770114588370972</id><published>2010-10-25T23:52:00.000+08:00</published><updated>2011-01-19T18:16:03.347+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="mdi"/><category scheme="http://www.blogger.com/atom/ns#" term="tips"/><category scheme="http://www.blogger.com/atom/ns#" term="winform 傳值"/><category scheme="http://www.blogger.com/atom/ns#" term="小密技"/><category scheme="http://www.blogger.com/atom/ns#" term="程式"/><category scheme="http://www.blogger.com/atom/ns#" term="筆記"/><title type='text'>C# 子視窗(child form)要使用父視窗(parent form)的變數</title><content type='html'>&lt;div&gt;&lt;img border=&quot;0&quot; height=&quot;176&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU90SSByvHdl-SUNdWAk1ufRxvZ-sAKZSd-ECts9k3C08gEoRn-w70Wo_e8CGW6hEtxV1ZSwfEgkrHgasbDdXyNfq21iz7L_vdmhFKRCaYe9qXw9dbr9OpCz1TBXI6V1rJYcuEqtg6yYVd/s320/762.jpg&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;印象中我以前好像都是主視窗~&lt;br /&gt;
要拿子視窗的物件來用~~~~&lt;br /&gt;
&lt;br /&gt;
或是WEB FORM之間的親子搞來搞去你儂我儂~&lt;br /&gt;
&lt;br /&gt;
卻很少在使用&lt;b&gt;WINFORM&lt;/b&gt;的情況下~&lt;br /&gt;
新開啟的視窗要使用主視窗的物件~~&lt;br /&gt;
&lt;br /&gt;
摁~仔細想想還真的沒碰過這個問題~&lt;br /&gt;
&lt;br /&gt;
順便筆記一下幾個常見的WINFORM傳值的方法吧~&lt;br /&gt;
WEBFORM 的傳值大家應該都很會了XDD&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
Ex. Form1 A(Main Form) , Form2 B(Child Form)&lt;br /&gt;
&lt;br /&gt;
情況1.&lt;br /&gt;
&lt;br /&gt;
A開B&lt;br /&gt;
A要等待B有熱烈的回應才肯繼續&amp;gt;///&amp;lt;&lt;br /&gt;
&lt;br /&gt;
Form1的部分程式碼&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot; title=&quot;程式碼&quot;&gt;Form2 B = new Form2();
B.Text = textBox1.Text;
//或是兩行遍一行Form2 B = new Form2(textBox1.Text);
if (B.ShowDialog() == DialogResult.OK)
{
this.textBox1.Text = B.Text;
}
&lt;/pre&gt;&lt;br /&gt;
Form2的部分程式碼&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot; title=&quot;程式碼&quot;&gt;public Form2()
{
InitializeComponent();
}

public Form2(string Text)
{
InitializeComponent();
textBox1.Text = Text;
}

public string Text
{
set
{
textBox1.Text = value;
}
get
{
return textBox1.Text;
}
}
&lt;/pre&gt;&lt;br /&gt;
情況2.&lt;br /&gt;
&lt;br /&gt;
只有A要B~B不要A~&lt;br /&gt;
又懶得寫set &amp;amp; get&lt;br /&gt;
那就把B的Access Modifiers提升(public protected private internal)&lt;br /&gt;
這邊改成internal應該就可以了&lt;br /&gt;
&lt;br /&gt;
Form1的部分程式碼&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot; title=&quot;程式碼&quot;&gt;Form2 B = new Form2();
B.Show();
textBox1.Text = B.textBox1.Text;
&lt;/pre&gt;&lt;br /&gt;
Form2的部分程式碼&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot; title=&quot;程式碼&quot;&gt;internal System.Windows.Forms.TextBox textBox1;
&lt;/pre&gt;&lt;br /&gt;
情況3.&lt;br /&gt;
&lt;br /&gt;
B要A的全部&amp;gt;///&amp;lt;&lt;b&gt;(我要的東西)&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
方法1.&lt;br /&gt;
&lt;br /&gt;
Form1的部分程式碼&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot; title=&quot;程式碼&quot;&gt;Form2 B = new Form2();
B.Owner = this;
B.Show();
&lt;/pre&gt;&lt;br /&gt;
Form2的部分程式碼&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot; title=&quot;程式碼&quot;&gt;((Form1)this.Owner).textBox1.Text = &quot;我要動你!!!!!&quot;;
&lt;/pre&gt;&lt;br /&gt;
方法2.&lt;br /&gt;
&lt;br /&gt;
Form1的部分程式碼&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot; title=&quot;程式碼&quot;&gt;Form2 B = new Form2(this);
B.Show();
&lt;/pre&gt;&lt;br /&gt;
Form2的部分程式碼&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot; title=&quot;程式碼&quot;&gt;public LinkList(Form1 A)
{
InitializeComponent();
this.Tag = A;
}
&lt;/pre&gt;然後&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot; title=&quot;程式碼&quot;&gt;((Form1)this.Tag).textBox1.Text = &quot;我要控制你的全部&amp;gt;///&amp;lt;&quot;;
&lt;/pre&gt;&lt;br /&gt;
情況4.&lt;br /&gt;
&lt;br /&gt;
用MDIContainer(((不過這樣子視窗全都在父視窗裡面了~太害羞了~不是我要的)))&lt;br /&gt;
&lt;br /&gt;
Form1的部分程式碼 &lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot; title=&quot;程式碼&quot;&gt;this.IsMdiContainer = true;
Form2 B = new Form2();
B.MdiParent = this;
B.Show();
&lt;/pre&gt;&lt;br /&gt;
Form2的部分程式碼 &lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot; title=&quot;程式碼&quot;&gt;this.Parent.FindForm().textBox1.Text = &quot;我在你的裡面~(羞&quot;;
&lt;/pre&gt;&lt;div&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhE8AMzA0k6f-9h-p7PQkr-9eGpbdNFc2iwK5HJF-t1f1iieX2PjUSv7zgGhJnxphWDLvRImnvsVl85hTDtIw0epq8hhRYZn4lIfWyscKVWHjgbyydjjIHdjeqV-s1dJFY3R40cC5yuXx2I/s1600/%E5%85%AC%E9%9B%9E.jpg&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.iteddie.com/feeds/3380770114588370972/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.iteddie.com/2010/10/c-child-formparent-form.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/3380770114588370972'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/3380770114588370972'/><link rel='alternate' type='text/html' href='http://www.iteddie.com/2010/10/c-child-formparent-form.html' title='C# 子視窗(child form)要使用父視窗(parent form)的變數'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU90SSByvHdl-SUNdWAk1ufRxvZ-sAKZSd-ECts9k3C08gEoRn-w70Wo_e8CGW6hEtxV1ZSwfEgkrHgasbDdXyNfq21iz7L_vdmhFKRCaYe9qXw9dbr9OpCz1TBXI6V1rJYcuEqtg6yYVd/s72-c/762.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8239546586347275958.post-7534016732712651333</id><published>2010-10-25T00:29:00.000+08:00</published><updated>2011-01-19T18:16:17.131+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="mshtml"/><category scheme="http://www.blogger.com/atom/ns#" term="tips"/><category scheme="http://www.blogger.com/atom/ns#" term="webBrowser"/><category scheme="http://www.blogger.com/atom/ns#" term="小密技"/><category scheme="http://www.blogger.com/atom/ns#" term="程式"/><category scheme="http://www.blogger.com/atom/ns#" term="筆記"/><title type='text'>C# webBrowser自動移除網頁元素(Elements)</title><content type='html'>&lt;div&gt;&lt;img border=&quot;0&quot; height=&quot;250&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMqH7Fe8pVoiNd_o57EYq0T-r-hk2rTIK375iJTT5wJKkh8xCW2mGhqaSimQOazIGpAlpQPWZhAL7K7IAlsJsKSQxKR1n5egw6kMYBocD3GQzv3aRah63VO0z0y0M4IF4o-Bb551G9koe5/s320/imagesCAVXU8Q8.jpg&quot; width=&quot;250&quot; /&gt;&lt;/div&gt;&lt;br /&gt;
我在寫一個瀏覽器&lt;br /&gt;
因為我被一些該死的圖片或是javascript或是廣告或是跳出視窗...bluhbluh~&lt;br /&gt;
弄得好煩!&lt;br /&gt;
&lt;br /&gt;
嚴格上來說可以算是Pro版的BlockAd...=口=||&lt;br /&gt;
所以現在來筆記一下怎麼自動移除網頁裡面的元素~&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
我是利用mshtml的IHTMLDOMNode來完成&lt;br /&gt;
根據MSDN先生的說法&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee; border: 1px solid #aaa;&quot;&gt;&lt;h1 class=&quot;title&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 1.769em; font-style: normal; font-variant: normal; font-weight: bold; line-height: normal; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;IHTMLDOMNode Interface&lt;/h1&gt;&lt;div class=&quot;clsDocBody&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;Provides methods to access all of the nodes in the document object model (DOM), to iterate the nodes, to insert nodes, to remove nodes, and to get the attributes of a node.&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
1.首先加一個參考Microsoft.mshtml&lt;br /&gt;
&lt;br /&gt;
2.&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot; title=&quot;程式碼&quot;&gt;using Microsoft.mshtml;
&lt;/pre&gt;&lt;br /&gt;
3.&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot; title=&quot;程式碼&quot;&gt;HTMLDocument doc1 = webBrowser1.Document.Body.Document.DomDocument as HTMLDocument;

//所有連結
foreach (IHTMLElement element in doc1.links)
{
IHTMLDOMNode node = element as IHTMLDOMNode;
node.removeNode(true);
}
&lt;/pre&gt;&lt;br /&gt;
或是&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot; title=&quot;程式碼&quot;&gt;HTMLDocument doc1 = webBrowser1.Document.Body.Document.DomDocument as HTMLDocument;

//所有圖片
foreach (IHTMLElement element in doc1.images)
{
IHTMLDOMNode node = element as IHTMLDOMNode;
node.removeNode(true);
}
&lt;/pre&gt;&lt;br /&gt;
或是&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot; title=&quot;程式碼&quot;&gt;public void RemoveByTag(string Tag)
{
HTMLDocument doc1 = webBrowser1.Document.Body.Document.DomDocument as HTMLDocument;

//指定的標籤
foreach (IHTMLElement element in doc1.getElementsByTagName(Tag))
{
IHTMLDOMNode node = element as IHTMLDOMNode;
node.removeNode(true);
}
}
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.iteddie.com/feeds/7534016732712651333/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.iteddie.com/2010/10/c-webbrowserelements.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/7534016732712651333'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/7534016732712651333'/><link rel='alternate' type='text/html' href='http://www.iteddie.com/2010/10/c-webbrowserelements.html' title='C# webBrowser自動移除網頁元素(Elements)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMqH7Fe8pVoiNd_o57EYq0T-r-hk2rTIK375iJTT5wJKkh8xCW2mGhqaSimQOazIGpAlpQPWZhAL7K7IAlsJsKSQxKR1n5egw6kMYBocD3GQzv3aRah63VO0z0y0M4IF4o-Bb551G9koe5/s72-c/imagesCAVXU8Q8.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8239546586347275958.post-6093029431898179258</id><published>2010-10-23T23:43:00.000+08:00</published><updated>2011-01-19T18:17:00.291+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#.vc#2005"/><category scheme="http://www.blogger.com/atom/ns#" term="statustextchanged"/><category scheme="http://www.blogger.com/atom/ns#" term="tips"/><category scheme="http://www.blogger.com/atom/ns#" term="小密技"/><category scheme="http://www.blogger.com/atom/ns#" term="程式"/><category scheme="http://www.blogger.com/atom/ns#" term="筆記"/><title type='text'>C# webBrowser 見鬼了的StatusTextChanged事件</title><content type='html'>&lt;div&gt;&lt;img border=&quot;0&quot; height=&quot;219&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhInBa31BHWO9RgVf_GN_McxKQMkfaWzmcD8wc9qJIh8oaza9dpyeEHKBg4eGbk9MRFoRTVUsZTZpr3491Jqtx0Of8EFduWehHyrFNvL6l5DHy9ljaAru18QWVFOb7T_1XlaYCnmFiK5azw/s320/371px-C_sharp_svg.jpg&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;見鬼了~&lt;br /&gt;
&lt;br /&gt;
我肯定我有寫過類似的阿~&lt;br /&gt;
&lt;br /&gt;
可是今天想要找這個事件的時候竟然找不到....哪A安捏=ˇ=&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi4GRdgcmk3EpJEPn85yykQXZcS2mJXTG-V29egJRkQIGrbUc5cbRMPrqH-zmU_Y_OH5FzPhKJEbrrKNs6o232D9_iq8_hhPRNYu0EA849LREqYz50OtJLWy6oLkDFiQcCt8SVX1xN7D9iI/s1600/statustextchanged.jpg&quot; /&gt;&lt;/div&gt;&lt;br /&gt;
真的沒有這個事件阿=口= 我有眼花嗎....&lt;br /&gt;
&lt;br /&gt;
可是可是....&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;img border=&quot;0&quot; height=&quot;258&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj35wd4KuUVer1z-NvHoIeHV31AHm9Qa-h4r7k-3SamajfJILG4W1u9ImXF9YTPI41KxT9tIwi2UmYawBYy093Dxr26aGboozyuggNiqJAPA_UnwLzMrgjtnf98fPBTpbfErmV3VMMowZUP/s400/statustextchanged2.jpg&quot; width=&quot;400&quot; /&gt;&lt;/div&gt;&lt;br /&gt;
真的有阿..........................QQ&quot;&lt;br /&gt;
&lt;br /&gt;
人老了膽子都會變小(抖..&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;img border=&quot;0&quot; height=&quot;30&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFBZg1Vm9EXCimUJZPcv7l2pLXMCjVzGUMigcSl1x0eqWG-mxKPwtjj67x_rT4fq4Av4HRswtkSUS9_anh59_1vSurLh-UbgSKNId08ywZvTAS6QvkaER4DJcRXr2RO8evxMqeaIopfc8B/s200/%E5%A4%B1%E9%AD%82.jpg&quot; width=&quot;30&quot; /&gt;rz&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.iteddie.com/feeds/6093029431898179258/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.iteddie.com/2010/10/c-webbrowser-statustextchanged.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/6093029431898179258'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/6093029431898179258'/><link rel='alternate' type='text/html' href='http://www.iteddie.com/2010/10/c-webbrowser-statustextchanged.html' title='C# webBrowser 見鬼了的StatusTextChanged事件'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhInBa31BHWO9RgVf_GN_McxKQMkfaWzmcD8wc9qJIh8oaza9dpyeEHKBg4eGbk9MRFoRTVUsZTZpr3491Jqtx0Of8EFduWehHyrFNvL6l5DHy9ljaAru18QWVFOb7T_1XlaYCnmFiK5azw/s72-c/371px-C_sharp_svg.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8239546586347275958.post-8806546011657199005</id><published>2010-10-23T22:16:00.000+08:00</published><updated>2011-01-19T18:17:24.184+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="inputbox"/><category scheme="http://www.blogger.com/atom/ns#" term="tips"/><category scheme="http://www.blogger.com/atom/ns#" term="程式"/><category scheme="http://www.blogger.com/atom/ns#" term="筆記"/><title type='text'>C# 自訂InputBox(可輸入的對話框)</title><content type='html'>&lt;div&gt;&lt;img border=&quot;0&quot; height=&quot;263&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_40nUoZ9YCEt7utgoaX6Q5geRH2fl4G4H3D1EwT6okTb_ShV8YFMqeDnBg88vdq5Cb1OLTPZT5cYON5h1mAWFeKfn3NIYOtH2EVZur2tfwh7zvsdD5hV1rmxQ0usxEQ0656lLDuN63Xjg/s400/Cplus_CSharp.jpg&quot; width=&quot;400&quot; /&gt;&lt;/div&gt;本篇也是筆記XD&lt;br /&gt;
&lt;br /&gt;
又是太久沒用到所以忘記了~&lt;br /&gt;
&lt;br /&gt;
自訂輸入對話框一定是常用的阿!!!!&lt;br /&gt;
&lt;br /&gt;
所以說阿~人一定不能沒筆記喔~啾咪!&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;img border=&quot;0&quot; height=&quot;308&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiElNPmgBVM4vL5FgAXZj74khPdtFLQmpB3ekaeLzVDZvUyOzxbIT58VvkFKaShimE94eSwW7tD6jIDuFyvl2kEGRlkJ7uLpxtAiU3XHRMbu-BfvTWDG5fMBZU7kuEky8DBBw__2iUqdWjH/s320/0909BANAO_item.jpg&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
1.首先在 [專案] 功能表上按一下 新增 Windows 表單 將新的表單加入至這個專案。然後就可以用這個表單當對話方塊。&lt;br /&gt;
&lt;br /&gt;
2.畫面拉一拉&lt;br /&gt;
&lt;div&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;147&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhElQzR9U6Sc_SGT82fZ9LV6A_Jv87wa6S7nRnS899I818NNZsZ1XUyprDQKo8-1TKB0S_t-gjgi2qIk6FtlnZTB7iLWAOQWzENrhliMrF4UPwZLBFOD8K9qgEbcUgu3Al6ZenTYNqR6jmN/s320/inputbox.jpg&quot; width=&quot;320&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
3.確定和取消的DialogResult屬性分別設定為OK和Cancel&lt;/div&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZpb5i7r1aV4YD7t_1YgfJQLIVpbBOCLUvIPerVBGO7oCyyFGPC28xIIFZVzb5K7OCYB-_utsPyFZN6Z4nu7T6lEhHIvU85mrTkCAvJxupn3ciqc6FzdngCIOQYYkkUM6nvDFTWEGy0z56/s320/OKdialogresult.jpg&quot; width=&quot;311&quot; /&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhmGVHKtpfzdnbm2SFK75sAxqsswEEb71aqKRzZv3cfRig1YowwkOuTSq_OdSSPN3ABzRnHfwJC-Xvd8ld2MvEGR1nW36o2sM8OWWpbP9ECVfsgB8_bbie-C_2sUtxuR1nZaGFqFyepZDZ/s320/CancelDialogresult.jpg&quot; width=&quot;303&quot; /&gt;&lt;/div&gt;&lt;br /&gt;
4.程式碼大概長這樣就可以用了&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot; title=&quot;程式碼&quot;&gt;public partial class InputBox : Form
{
public InputBox()
{
InitializeComponent();
}
private string Msg;

private void button1_Click(object sender, EventArgs e)
{
Msg = textBox1.Text;
}

public string GetMsg()
{
return Msg;
}
}
&lt;/pre&gt;&lt;br /&gt;
5.然後在原表單的呼叫方法如下&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot; title=&quot;程式碼&quot;&gt;InputBox input = new InputBox();
DialogResult dr = input.ShowDiaolog();
if(dr ==DialogResult.OK)
{
MessageBox.Show(input.GetMsg());
}
&lt;/pre&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;6.收工吃飯&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div&gt;&lt;img border=&quot;0&quot; height=&quot;125&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEih2l-8VfAI8BPIj5-PNfPdj1BfnpZAGYznTy3IdWGCSSfhyphenhyphenZw20Qrld4VkASzT1PazsFol1wQfb9c2_S1VuTxkS5nG0Lt532m0BYR5Enwi2e-XvpdGAnSKW86fUPSyzTTrOEHNFFkAHY8e/s200/%E9%B3%A5.jpg&quot; width=&quot;200&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.iteddie.com/feeds/8806546011657199005/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.iteddie.com/2010/10/c-inputbox.html#comment-form' title='6 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/8806546011657199005'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/8806546011657199005'/><link rel='alternate' type='text/html' href='http://www.iteddie.com/2010/10/c-inputbox.html' title='C# 自訂InputBox(可輸入的對話框)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_40nUoZ9YCEt7utgoaX6Q5geRH2fl4G4H3D1EwT6okTb_ShV8YFMqeDnBg88vdq5Cb1OLTPZT5cYON5h1mAWFeKfn3NIYOtH2EVZur2tfwh7zvsdD5hV1rmxQ0usxEQ0656lLDuN63Xjg/s72-c/Cplus_CSharp.jpg" height="72" width="72"/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8239546586347275958.post-2570210078416474647</id><published>2010-10-22T20:23:00.000+08:00</published><updated>2011-01-19T18:17:56.358+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="css"/><category scheme="http://www.blogger.com/atom/ns#" term="galleroo"/><category scheme="http://www.blogger.com/atom/ns#" term="HFS"/><category scheme="http://www.blogger.com/atom/ns#" term="tips"/><category scheme="http://www.blogger.com/atom/ns#" term="小密技"/><category scheme="http://www.blogger.com/atom/ns#" term="筆記"/><category scheme="http://www.blogger.com/atom/ns#" term="軟體"/><title type='text'>在Http File Server(HFS)上製作專屬的相本(Gallery)</title><content type='html'>&lt;div&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhggwY3B0L52Jbl5o3v6CV1p0MjCszhnjf8JKoqiW1Wt6deernnH7jBTza8-tGjIl_BYVPmdSdid9_fhtXV1lzKVg6x5vto7pj68E0LIZbXMyrTxuGJdwOk15rvanncc2CkNlue9KEG49RE/s1600/logo100.jpg&quot; /&gt;&lt;br /&gt;
HFS是一套專為個人用戶所設計的 HTTP 檔案系統 - Http File Server，如果您覺得架設 FTP Server 太麻煩，那麼這個軟體可以提供您更方便的檔案傳輸系統，下載後無須安裝，只要解壓縮後執行 hfs.exe，於「Virtual File System(虛擬檔案系統)」窗格下按滑鼠右鍵，即可新增/移除虛擬檔案資料夾，或者，直接將欲加入的檔案拖曳至此視窗，便可架設完成個人 HTTP 虛擬檔案伺服器。&lt;/div&gt;&lt;br /&gt;
&lt;div&gt;&lt;img border=&quot;0&quot; height=&quot;292&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6Q4PfCzt5gsT_mjwwPL2Me9tcNqxVEk0CQOtFPcrI3zGv8eNxrilxZvuFjFJxCm5bmDUePwqvwsHvQpk42FwNDAhvBmlIMkH-psCe5zUD4JsK6OfHBBvhRyc8lD8VNLyHMvfK-RGc71R8/s320/hfs+v2.3+242.jpg&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
用這套檔案伺服器軟體也好幾年了&lt;br /&gt;
最近才突然發現原來可以自己做有點類似相簿的功能XDDD&lt;br /&gt;
HFS好棒阿!!!!!&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoPohAklxEu5uCYcXuUjQcgoJTcF9Ke98ihgf7MPUcm9Xec-xVT21GEjvBzgCxazro052SagdsAoCtdQHm3SsiATV2f0VMxVEoGIx7JuiBUcUjFgLzCiQIxo9GccU8yTlH4iWrZUq7SFRn/s1600/%E6%B7%AB%E7%AC%91+(1).jpg&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
首先要去下載&lt;a href=&quot;http://www.xyster.net/galleroo/&quot;&gt;Galleroo&lt;/a&gt;這套軟體~點進去以後按&quot;Download&quot;就可以下載了~&lt;br /&gt;
目前使用的版本是3.5~&lt;br /&gt;
&lt;br /&gt;
安裝完以後打開軟體&lt;br /&gt;
&lt;div&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0QTLH-K2aQvW7maz2xgaxmZjHVU7JmNJsxXN5SCxAZZTTN-TjJX3P8MsE5WpFBfEtHVgsphtgvA7eZZxKjLDN-EVoq2BYba9QW12_c0-2UxNd3MFkNHgWz9yNdU3y46WVVWQibgIpBhKI/s400/Galleroo+20101022+%E4%B8%8B%E5%8D%88+064236.jpg&quot; width=&quot;400&quot; /&gt;&lt;/div&gt;介面大概是長這樣&lt;br /&gt;
&lt;br /&gt;
他有四種樣式(style)可以選~&lt;br /&gt;
我是用Tavla這個樣式~因為好像只有這個可以分頁面~&lt;br /&gt;
其他樣式都是啪啦一口氣就全部的小縮圖(thumb)列出來~&lt;br /&gt;
你就會看到你的HFS狂閃綠光XDDDDDDDDDD&lt;br /&gt;
&lt;br /&gt;
還是其他樣式也有分頁功能~只是我沒發現!!!XDD&lt;br /&gt;
畢竟網站都是英文的= =&quot;&lt;br /&gt;
我也不知道 哈哈哈哈!&lt;br /&gt;
&lt;br /&gt;
這邊是四種樣式的範例網站~可以參考看看!&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #eeeeee; border: 1px solid #888888; padding: 20px 20px 20px 20px; width: auto;&quot;&gt;Examples&lt;br /&gt;
&lt;ul&gt;&lt;li style=&quot;padding-bottom: 0.1em; padding-left: 0.1em; padding-right: 0.1em; padding-top: 0.1em;&quot;&gt;&lt;a href=&quot;http://www.xyster.net/galleroo/examples/galleries/pratim_index.html&quot; style=&quot;border-bottom-color: rgb(102, 102, 102); border-bottom-style: solid; border-bottom-width: 1px; color: black; text-decoration: none;&quot;&gt;Pratim&lt;/a&gt;&amp;nbsp;- for the photographer&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 0.1em; padding-left: 0.1em; padding-right: 0.1em; padding-top: 0.1em;&quot;&gt;&lt;a href=&quot;http://www.xyster.net/galleroo/examples/galleries/tavla_index.html&quot; style=&quot;border-bottom-color: rgb(102, 102, 102); border-bottom-style: solid; border-bottom-width: 1px; color: black; text-decoration: none;&quot;&gt;Tavla&lt;/a&gt;&amp;nbsp;- thumbnail tables&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 0.1em; padding-left: 0.1em; padding-right: 0.1em; padding-top: 0.1em;&quot;&gt;&lt;a href=&quot;http://www.xyster.net/galleroo/examples/galleries/misgarot_index.html&quot; style=&quot;border-bottom-color: rgb(102, 102, 102); border-bottom-style: solid; border-bottom-width: 1px; color: black; text-decoration: none;&quot;&gt;Misgarot&lt;/a&gt;&amp;nbsp;- frames everywhere&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 0.1em; padding-left: 0.1em; padding-right: 0.1em; padding-top: 0.1em;&quot;&gt;&lt;a href=&quot;http://www.xyster.net/galleroo/examples/galleries/index.html&quot; style=&quot;border-bottom-color: rgb(102, 102, 102); border-bottom-style: solid; border-bottom-width: 1px; color: black; text-decoration: none;&quot;&gt;Tiqur&lt;/a&gt;&amp;nbsp;- annotation gallery&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;br /&gt;
然後我大概介紹一下功能&lt;br /&gt;
&lt;br /&gt;
Go! : 按下去就可以開始產生相片播放的html檔案了&lt;br /&gt;
Mode:這邊分三種「Smart Tweak」 「Tweak Full」 「HTML Only」&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Smart Tweak: 應該是跟表面上的意思一樣~相信他的智慧~交給他判斷吧XDDD&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Tweak Full: 應該是縮圖跟HTML都會重新產生一次&lt;br /&gt;
&amp;nbsp;&amp;nbsp; HTML Only: 應該是只產生HTML檔就好&lt;br /&gt;
Source Folder: 選擇你的圖片來源資料夾&lt;br /&gt;
Gallery Folder: 選擇你要產生的相片撥放的html檔案要放哪個資料夾&lt;br /&gt;
Thumb Size: 程式會產生你指定大小的縮圖(預設75)&lt;br /&gt;
Image Size: 程式會產生你指定大小的放大圖(預設600)&lt;br /&gt;
Thumb Quality: 程式會產生你指定的相片品質的縮圖(預設75)&lt;br /&gt;
Image Quality: 程式會產生你指定的相片品質的放大圖(預設75)&lt;br /&gt;
Title: 主標題&lt;br /&gt;
Sub Title: 子標題&lt;br /&gt;
Sort By: 這邊可以選擇依照日期(date)或是名字(name)來排序&lt;br /&gt;
Sort Order: 這邊可以選擇順排還是逆排&lt;br /&gt;
Do Thumb Slider: 設定yes&lt;br /&gt;
Columns Per Index: 主頁面每一列要放幾張圖&lt;br /&gt;
Rows Per Index: 主頁面要有幾列&lt;br /&gt;
Do Three Stage: 選no (產生縮圖~放大圖) 選yes(產生縮圖 放大圖 原始圖)&lt;br /&gt;
Do Auto Play Movies: 自動開始&lt;br /&gt;
Custom CSS File: 看要不要自訂CSS~我這邊是留空白~可是有重寫一個覆蓋它原始的&lt;br /&gt;
Gallery Root: 他上一層的網址(預設是../index.html) 因為我是用HFS所以改成「../」就可以了&lt;br /&gt;
&lt;br /&gt;
然後功能介紹完了~&lt;br /&gt;
就設定一下就按 Go! 吧!!!!!&lt;br /&gt;
&lt;br /&gt;
ps.&lt;br /&gt;
我再Go!的時候 有時候發現會卡住~&lt;br /&gt;
好像是圖片的問題~可是也不知道圖片是哪裡有問題~&lt;br /&gt;
可是把卡住圖片拿走~他就又可以跑得很順了~真怪=口=&lt;br /&gt;
&lt;br /&gt;
Go!完以後就是要把相本加入HFS了~&lt;br /&gt;
假設你Gallery Folder(就是你產生相片的html檔案的資料夾)的名稱是Image Gallery好了&lt;br /&gt;
你就把Image Gallery這個資料夾拖拖拖拖到HFS裡面~&lt;br /&gt;
看你要放甚麼位置~&lt;br /&gt;
然後我是選real-folder 不然virtual-folder每次重改檔案都要重拉一次很麻煩~&lt;br /&gt;
然後在HFS的Gallery Folder的資料夾上面按右鍵選Properties~找Default file mask&lt;br /&gt;
填入index.html~OK!!&lt;br /&gt;
&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisf8aXg5hieW8Y5R-nX1tExRQZn7OVusxuW0Spib1t2wc2XplsrDWVXfY4cliAnCjFBsEpO31xe5sZJTsiurcLd5cT4aISL1RBmdva1jg88W3hN-RXfwp4BsR3wM0rTS7O5cPTSvKPFMPD/s400/properties+gallery.jpg&quot; width=&quot;373&quot; /&gt;&lt;br /&gt;
然後就可以收工吃飯了=口=&lt;br /&gt;
順便分享一下我的CSS XDDD 雖然很醜~不過比預設的好看5千倍有吧XDD(我真不要臉&lt;br /&gt;
&lt;a href=&quot;http://www.box.net/files#/files/0/item/f_530681069&quot;&gt;下載&lt;/a&gt;&lt;br /&gt;
等 Go! 完以後把檔案蓋進去就好~~~~&lt;br /&gt;
要套用我的CSS的話~~~&lt;br /&gt;
Galleroo所有的顏色~字體~背景~按鈕圖片都不要改唷~&lt;br /&gt;
恩~就是細麵這些都用原本的設定就好~&lt;br /&gt;
&lt;div&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiH75gj4AuX2cj8zfIPPYfsZKRi3HGFwqMiyGYJe2T0RuGRSfgx9kVehvvVtVuj1raB2j27RJuT6WIN7ciuKOuJwqiNrDKyRhAB1WraiozOhK5GwWGU4TFFO7iXSy_RAZ0Hqqpg9wAvNqCW/s1600/Galleroo+20101022+%E4%B8%8B%E5%8D%88+080406.jpg&quot; /&gt;&lt;/div&gt;&lt;br /&gt;
啾咪~&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkJw3Kkhd589m5FGRurl3Ttz2RSLZ7Q1yn0CbDEJRgtRVHHGDkdzFbbyS7qXMJAuNQ4mryYPQfg6BNq4UIhwAbITypWumv-Cv0-HlxCHfb_5HPIw8h_iy45dglSEEJnryCeE4Fe049xLXH/s1600/Photo+Gallery+-+.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;297&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkJw3Kkhd589m5FGRurl3Ttz2RSLZ7Q1yn0CbDEJRgtRVHHGDkdzFbbyS7qXMJAuNQ4mryYPQfg6BNq4UIhwAbITypWumv-Cv0-HlxCHfb_5HPIw8h_iy45dglSEEJnryCeE4Fe049xLXH/s400/Photo+Gallery+-+.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;這個就是我的版面XDD 雖然還是很醜不過比預設的每了啦XDDD&lt;br /&gt;
然後因為圖片都太害羞了~所以用小畫家把它蓋掉了XDDD&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghRaps9QtVlBq73WxkAsKAZh739e1aRqOTUy4H6CMvIkXIkBa8yeFspYaQM5eFh97q617KZRT4KPHIp3AJOiiOYdmNQYKyN8Apf8jgI3HaoHXJnHuSfFrZ2obp7SprIZl6WIUrKs94O5Xi/s1600/galleryslide.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;337&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghRaps9QtVlBq73WxkAsKAZh739e1aRqOTUy4H6CMvIkXIkBa8yeFspYaQM5eFh97q617KZRT4KPHIp3AJOiiOYdmNQYKyN8Apf8jgI3HaoHXJnHuSfFrZ2obp7SprIZl6WIUrKs94O5Xi/s400/galleryslide.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;這是點進去的內頁畫面~~~XDDDD&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.iteddie.com/feeds/2570210078416474647/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.iteddie.com/2010/10/http-file-serverhfsgallery.html#comment-form' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/2570210078416474647'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/2570210078416474647'/><link rel='alternate' type='text/html' href='http://www.iteddie.com/2010/10/http-file-serverhfsgallery.html' title='在Http File Server(HFS)上製作專屬的相本(Gallery)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhggwY3B0L52Jbl5o3v6CV1p0MjCszhnjf8JKoqiW1Wt6deernnH7jBTza8-tGjIl_BYVPmdSdid9_fhtXV1lzKVg6x5vto7pj68E0LIZbXMyrTxuGJdwOk15rvanncc2CkNlue9KEG49RE/s72-c/logo100.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8239546586347275958.post-4445758698908265139</id><published>2010-10-21T04:54:00.000+08:00</published><updated>2011-01-19T18:26:21.062+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="iframe"/><category scheme="http://www.blogger.com/atom/ns#" term="msn"/><category scheme="http://www.blogger.com/atom/ns#" term="tips"/><category scheme="http://www.blogger.com/atom/ns#" term="webBrowser"/><category scheme="http://www.blogger.com/atom/ns#" term="小密技"/><category scheme="http://www.blogger.com/atom/ns#" term="程式"/><category scheme="http://www.blogger.com/atom/ns#" term="筆記"/><category scheme="http://www.blogger.com/atom/ns#" term="軟體"/><title type='text'>C# 給陌生人的專屬個人版MSN.....</title><content type='html'>&lt;div style=&quot;clear: both;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLdiymbmhegN7MnFBVqW9EjcMszUyIb258OYgqXxMktouo0nJkLdIUmDcE3TP7Z0GhBytBJvWggB6i6j0pFwXmGdcgYV1Y8T4BL9NrldzWcG2ShgIlckB0inNfbFh19I4CRLPxcHtyDLT2/s400/%E8%8A%B1_1_~1.JPG&quot; width=&quot;340&quot; /&gt;&lt;/div&gt;由於...有人一直抱怨我都不給他MSN帳號~&lt;br /&gt;
所以有今天這個程式的誕生= =&quot;&lt;br /&gt;
至於這個「有人」就是上面這一支.....&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
先看看畫面吧...&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;clear: both;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7tB052fNjqOBT1pCljr2wBNJGpsQx70BDUnkT8i9brJfiaqq_Sh3eXeQqAXnsQ3HSxgQpTnTSFJadSxzgdguGuL2HvW-3y3yzpwYNzqnPnUhsTxhA5M7A78d4z9RBxL6ftV51aWI_G3SI/s1600/msntomedesktop.jpg&quot; style=&quot;margin-left: auto; margin-right: auto;&quot; width=&quot;382&quot; /&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;在桌面的樣子~背景是香蕉&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;clear: both;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;249&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOaoGVBVbabWAejEECd98QjwFL8yGZxRUsZ_6LfUQAfoXRyTljf3XkMlUjwY6LH2Rxp9Ebg2ETPhfdx7R2YgDTukPFY63WvauMbOR2zKZf1rvhvSWQxkC8eYKraGcf3w-JrZlHmia3aO2D/s400/msntometaskbar.jpg&quot; style=&quot;margin-left: auto; margin-right: auto;&quot; width=&quot;400&quot; /&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;在右下角通知區域的樣子&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;clear: both;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;203&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4boqr21AmIZCiAvGcO1L4hAWwkSEi3KdAmKrRd47xEQvqIvm8ZqKy1rykEBGnqmAxtITeD87nLkX4h-gsrltyUReltaFeoj1kjcDK0fq2KfAthlJnaA4nTCus1Sl8MVc3i2Ogl66YoMht/s400/msntometoolbar.jpg&quot; style=&quot;margin-left: auto; margin-right: auto;&quot; width=&quot;400&quot; /&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;在工具列的樣子&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;clear: both;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguBjGbvBir7-dTwDt0ZB4tWxw0GGEMEYwmMciHdn5zctWPbh74zDZ6fbcqFWVv6_UPcBX5AskywqH1ZRXCyeEt3-WM8pxahBUVUZqVU00iGcJy0UNDW4cgIITC5iDNqCt8uCpaMnT-L7qP/s400/msntomerightclick.jpg&quot; width=&quot;391&quot; /&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;在圖示上按右鍵跑出menu的樣子&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;clear: both;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUtWt7WdbrLIhrrrKcsR3FA7W2hicibrQZX075vKBukt_-bN5ibXtEDhydIWMsmBmG3hpKYjNF960SU0Ct20mSKZyL36NJscOnSJLUTEP92k261OsFu5p09pzOCS89EfhFiSqRVBrBZ-fa/s400/msntomenewmsg.jpg&quot; style=&quot;margin-left: auto; margin-right: auto;&quot; width=&quot;400&quot; /&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;有新訊息的樣子~&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: x-large;&quot;&gt;聲音當然是經典的等燈燈~&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
然後其實還蠻簡單的~&lt;br /&gt;
把網頁版的msn嵌入windows form而已...&lt;br /&gt;
&lt;br /&gt;
有人會問槓麻不用網頁的就好了= =&quot;&lt;br /&gt;
請把卷軸捲到最上面~....&lt;br /&gt;
有看到一支嗎?&lt;br /&gt;
因為他說沒聲音提示~很不方便!&lt;br /&gt;
&lt;br /&gt;
然後這個程式稍微麻煩的地方在聲音出來的時機...&lt;br /&gt;
要去抓對方傳訊息過來的事件...&lt;br /&gt;
然後閃爍也太麻煩~所以用成notifyicon來顯示通知!&lt;br /&gt;
方便又不礙眼~啾咪!&lt;br /&gt;
&lt;br /&gt;
話說~其實如果有陌生人跟你要MSN的話~&lt;br /&gt;
可以給他這種個人版的XDDDD&lt;br /&gt;
因為不會透漏自己的MSN帳號~蠻讚的!&lt;br /&gt;
適合常常需要加陌生人MSN的捧由~~~~&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM0r3D5nWw_Lwvj80QALLI0U3cyitaai__AyV3cTV2e9_UUpzadHRKoHP_gtET_YpkiG1hhSwGHc-97OMLaHBnse4VLPaJ4TNWIu34kVM6dy5uLrqPo3qm7xiiAXagrv5DgS7cQQncetZZ/s1600/Messenger_black_beta.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;76&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM0r3D5nWw_Lwvj80QALLI0U3cyitaai__AyV3cTV2e9_UUpzadHRKoHP_gtET_YpkiG1hhSwGHc-97OMLaHBnse4VLPaJ4TNWIu34kVM6dy5uLrqPo3qm7xiiAXagrv5DgS7cQQncetZZ/s400/Messenger_black_beta.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.iteddie.com/feeds/4445758698908265139/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.iteddie.com/2010/10/c-msn.html#comment-form' title='3 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/4445758698908265139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/4445758698908265139'/><link rel='alternate' type='text/html' href='http://www.iteddie.com/2010/10/c-msn.html' title='C# 給陌生人的專屬個人版MSN.....'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLdiymbmhegN7MnFBVqW9EjcMszUyIb258OYgqXxMktouo0nJkLdIUmDcE3TP7Z0GhBytBJvWggB6i6j0pFwXmGdcgYV1Y8T4BL9NrldzWcG2ShgIlckB0inNfbFh19I4CRLPxcHtyDLT2/s72-c/%E8%8A%B1_1_~1.JPG" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8239546586347275958.post-4645587804647456466</id><published>2010-10-21T03:30:00.000+08:00</published><updated>2011-01-19T18:26:39.463+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="mediaplayer"/><category scheme="http://www.blogger.com/atom/ns#" term="tips"/><category scheme="http://www.blogger.com/atom/ns#" term="wav"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="小密技"/><category scheme="http://www.blogger.com/atom/ns#" term="程式"/><category scheme="http://www.blogger.com/atom/ns#" term="筆記"/><title type='text'>C# 播放wav~筆記</title><content type='html'>突然忘記怎麼用~結果還要去google大神查~&lt;br /&gt;
&lt;br /&gt;
唉~人真的是不能沒有筆記阿~~&lt;br /&gt;
&lt;div style=&quot;clear: both;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;308&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiElNPmgBVM4vL5FgAXZj74khPdtFLQmpB3ekaeLzVDZvUyOzxbIT58VvkFKaShimE94eSwW7tD6jIDuFyvl2kEGRlkJ7uLpxtAiU3XHRMbu-BfvTWDG5fMBZU7kuEky8DBBw__2iUqdWjH/s320/0909BANAO_item.jpg&quot; width=&quot;320&quot; /&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div style=&quot;clear: both;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnb0y_ddiBnFtXjIcz__w4TPSInDnC79v-Cqi1fDtIcZrpdO5iPM9boNOAt0K1EgppQU4jFP40ilBD_swDISdA1hT0Uq62pog27F41W-4wdmRggleEzmwgTICe8CS8fRPjZkcc5j88QQ_w/s320/78231.jpg&quot; width=&quot;268&quot; /&gt;&lt;img border=&quot;0&quot; height=&quot;261&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgx6YZ6Yt_3AUE567bV8CE3FOanmG41e_R-VgqxXnmdWRbE06sHKyfeNtqUMXx1mCh1vfLg7XsdCJK9QhvKpk4CBtQ_GYrDpnUzJQevaonPjBnqzz2Leb9p-EawdClfjxMvGr7a_VWJBJum/s320/200855123713408_2.jpg&quot; width=&quot;320&quot; /&gt;&lt;img border=&quot;0&quot; height=&quot;173&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqYLqbz-5uFh9aARlh47nQYGOI1gP3n0EXiDioE77nVcwGFbY9WPSve3X6RlHvkU2fWu_JEDW3JUF3j716TDUQl0Sj2WGGIFmNuJ4SqnXU90uc_UD8GnhhJSZkISBeKsUa-NZfAKe0XiUy/s320/GPEN200NW6_3.jpg&quot; width=&quot;320&quot; /&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgm65Td85rG-WrqSQVQpjvO-nYhRLQV4-Q3VWSw2uCUwu2UtPh7Boee9EuZDH4INc_PhwRYwXwVcCCbe7skarhcQoui5MBkkJof8Tl_ZF8T6kdcGNrIivgCaGuPr5ZTVPwJXo87MIB9Ms0c/s320/morenotebook.JPG&quot; width=&quot;213&quot; /&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbIW5r-LUHHvei1REhPEvDPtDURRUb7TYWkS3xiTW9TCiIZstJaEadC1a_q21fSn9WJ8WewCPr2WUCmcSB6YhGAJLQTfLFbas3pCPvZFUVGA2sV30mPiPKQW70djlDGe48AzmBUE1A3r15/s1600/DSCF3514.jpg&quot; /&gt;&lt;/div&gt;&lt;br /&gt;
以上是香蕉先生的工商時間XDDD&lt;br /&gt;
言歸正傳~~~~&lt;br /&gt;
&lt;br /&gt;
其實google神了一下以後~也學到蠻多新招的啦XD&lt;br /&gt;
播放個音效而已~這麼多招-.-&lt;br /&gt;
&lt;pre class=&quot;brush:csharp&quot; title=&quot;程式碼&quot;&gt;using System.Media;
&lt;/pre&gt;&lt;pre class=&quot;brush:csharp&quot; title=&quot;程式碼&quot;&gt;SoundPlayer sp = new SoundPlayer(&quot;sound位置&quot;);
sp.Play();
&lt;/pre&gt;&lt;br /&gt;
順便筆記一下MSDN的資料~~~&lt;br /&gt;
&lt;br /&gt;
&lt;h1 class=&quot;title&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 1.769em; font-style: normal; font-variant: normal; font-weight: bold; line-height: normal; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;SoundPlayer 類別&lt;/h1&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;控制 .wav 檔音效的播放。&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 20px; font-weight: bold;&quot;&gt;備註&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;span class=&quot;sentence&quot; id=&quot;xn2_c03d91c697fb823928ee25538256267d&quot;&gt;&lt;span xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;span class=&quot;selflink&quot;&gt;SoundPlayer&lt;/span&gt;&lt;/span&gt;&amp;nbsp;類別 (Class) 提供簡單的介面可載入和播放 .wav 檔。&lt;/span&gt;&lt;span class=&quot;sentence&quot; id=&quot;xn3_dc706b123669233d1a4e1b6c35e3438e&quot;&gt;&lt;span xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;span class=&quot;selflink&quot;&gt;SoundPlayer&lt;/span&gt;&lt;/span&gt;&amp;nbsp;類別支援從檔案路徑、URL、包含 .wav 檔的&amp;nbsp;&lt;span xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/system.io.stream.aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;Stream&lt;/a&gt;&lt;/span&gt;、或包含 .wav 檔的內嵌資源載入 .wav 檔。&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;span class=&quot;sentence&quot; id=&quot;xn4_f4cc2608385008cd934e6f0f93bb8ff1&quot;&gt;若要使用&amp;nbsp;&lt;span xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;span class=&quot;selflink&quot;&gt;SoundPlayer&lt;/span&gt;&lt;/span&gt;&amp;nbsp;類別播放音效，請設定包含 .wav 檔路徑的&amp;nbsp;&lt;span xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;span class=&quot;selflink&quot;&gt;SoundPlayer&lt;/span&gt;&lt;/span&gt;&amp;nbsp;並呼叫其中一個播放方法。&lt;/span&gt;&lt;span class=&quot;sentence&quot; id=&quot;xn5_f5bacdd8c3734fd7f9161bb522f4d188&quot;&gt;您可以使用其中一個建構函式 (Constructor)，或者設定&lt;span xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/system.media.soundplayer.soundlocation.aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;SoundLocation&lt;/a&gt;&lt;/span&gt;&amp;nbsp;或&amp;nbsp;&lt;span xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/system.media.soundplayer.stream.aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;Stream&lt;/a&gt;&lt;/span&gt;&amp;nbsp;屬性��辨認要播放的 .wav 檔。&lt;/span&gt;&lt;span class=&quot;sentence&quot; id=&quot;xn6_4e3415b9c4fbf2a017338dd1ea56486a&quot;&gt;在播放之前可使用其中一個載入方法將檔案載入，也可以延到呼叫其中一個播放方法後再載入。&lt;/span&gt;&lt;span class=&quot;sentence&quot; id=&quot;xn7_d93e55f68f4e2ac3e9518db02e9499b7&quot;&gt;設定從&lt;span xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/system.io.stream.aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;Stream&lt;/a&gt;&lt;/span&gt;&amp;nbsp;或從 URL 載入 .wav 檔的&amp;nbsp;&lt;span xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;span class=&quot;selflink&quot;&gt;SoundPlayer&lt;/span&gt;&lt;/span&gt;，必須在播放開始之前將 .wav 檔載入到記憶體中。&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;span class=&quot;sentence&quot; id=&quot;xn8_6d56df09ba98254b05641f94db8cd832&quot;&gt;您可以同步或非同步載入或播放 .wav 檔。&lt;/span&gt;&lt;span class=&quot;sentence&quot; id=&quot;xn9_89932d5235518f4808103b0480010a92&quot;&gt;如果您呼叫同步載入或播放方法，呼叫緒執行會等待直到方法傳回，這可能會造成繪製和其他事件被中斷。&lt;/span&gt;&lt;span class=&quot;sentence&quot; id=&quot;xn10_afeefc7779bd2df6fe2ac178bf6d23ff&quot;&gt;呼叫非同步的載入或播放方法將允許呼叫執行緒持續運作而不中斷。&lt;/span&gt;&lt;span class=&quot;sentence&quot; id=&quot;xn11_9aaaa679a5d48b865bbd9717413381db&quot;&gt;如需非同步方法呼叫的詳細資訊，請參閱&amp;nbsp;&lt;span xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/hybbz6ke.aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;HOW TO：在背景執行作業&lt;/a&gt;&lt;/span&gt;。&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;span class=&quot;sentence&quot; id=&quot;xn12_b877a49b1d5f0513857babd9e2ba1f32&quot;&gt;&lt;span xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;span class=&quot;selflink&quot;&gt;SoundPlayer&lt;/span&gt;&lt;/span&gt;&amp;nbsp;完成載入 .wav 檔後，它會引發&amp;nbsp;&lt;span xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/system.media.soundplayer.loadcompleted.aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;LoadCompleted&lt;/a&gt;&lt;/span&gt;&amp;nbsp;事件。&lt;/span&gt;&lt;span class=&quot;sentence&quot; id=&quot;xn13_ff61aa4fa971aae12475dcc4907f4360&quot;&gt;您可以檢查事件處理常式中的&amp;nbsp;&lt;span xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/system.componentmodel.asynccompletedeventargs.aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;AsyncCompletedEventArgs&lt;/a&gt;&lt;/span&gt;，以判斷載入成功或失敗。&lt;/span&gt;&lt;span class=&quot;sentence&quot; id=&quot;xn14_ccffe2b4c0837fc341a83690e5fd39ef&quot;&gt;當音效來源設定為新的檔案路徑或 URL 時，會引發&amp;nbsp;&lt;span xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/system.media.soundplayer.soundlocationchanged.aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;SoundLocationChanged&lt;/a&gt;&lt;/span&gt;&amp;nbsp;事件。&lt;/span&gt;&lt;span class=&quot;sentence&quot; id=&quot;xn15_97d09b14baa783f2016d9f313607c6e5&quot;&gt;當音效來源設定為新的&amp;nbsp;&lt;span xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/system.io.stream.aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;Stream&lt;/a&gt;&lt;/span&gt;&amp;nbsp;時，會引發&amp;nbsp;&lt;span xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/system.media.soundplayer.streamchanged.aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;StreamChanged&lt;/a&gt;&lt;/span&gt;&amp;nbsp;事件。&lt;/span&gt;&lt;span class=&quot;sentence&quot; id=&quot;xn16_33703802057827d73de2f812a905d9dd&quot;&gt;如需處理事件的詳細資訊，請參閱&lt;span xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/2ccyd347.aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;使用事件&lt;/a&gt;&lt;/span&gt;。&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;span class=&quot;sentence&quot; id=&quot;xn17_8e413d9a78a36eb233e7d02114206ad2&quot;&gt;如需&amp;nbsp;&lt;span xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;span class=&quot;selflink&quot;&gt;SoundPlayer&lt;/span&gt;&lt;/span&gt;&amp;nbsp;的詳細資訊，請參閱&amp;nbsp;&lt;span xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/ms171679.aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;SoundPlayer 類別概觀&lt;/a&gt;&lt;/span&gt;。&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 20px; font-weight: bold;&quot;&gt;版本資訊&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;支援版本：4、3.5、3.0、2.0&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16pt;&quot;&gt;--------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16pt;&quot;&gt;還有用載入winmm.dll~使用PlaySound的method來播放!!&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h1 class=&quot;heading&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 1.769em; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;範例&lt;/h1&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;在下面的程式碼中，會使用&amp;nbsp;&lt;b&gt;DllImport&lt;/b&gt;&amp;nbsp;將&amp;nbsp;&lt;b&gt;winmm.dll&lt;/b&gt;&amp;nbsp;的&amp;nbsp;&lt;b&gt;PlaySound&lt;/b&gt;&amp;nbsp;方法進入點匯入為&amp;nbsp;&lt;tt xmlns:asp=&quot;http://msdn2.microsoft.com/asp&quot;&gt;Form1 PlaySound()&lt;/tt&gt;。這是以簡單的 Windows Form 再加上一個按鈕為例。按一下表單上的按鈕，即會顯示標準的 Windows&amp;nbsp;&lt;span class=&quot;linkTerms&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/system.windows.forms.openfiledialog(v=VS.80).aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;OpenFileDialog&lt;/a&gt;&lt;/span&gt;&amp;nbsp;對話方塊，讓您開啟要播放的檔案。選取了 WAV 檔之後，便會使用 winmm.DLL 組件方法的&lt;b&gt;PlaySound()&lt;/b&gt;&amp;nbsp;方法播放。如需 winmm.dll 之&amp;nbsp;&lt;b&gt;PlaySound&lt;/b&gt;&amp;nbsp;方法的詳細資訊，請參閱&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_waveform_audio_files.asphttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/htm/_win32_waveform_audio_files.asp&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;Using PlaySound to Play Waveform-Audio Files&lt;/a&gt;。瀏覽並選取副檔名為 .wav 的檔案，然後按一下 [開啟]，使用平台叫用播放 WAV 檔。文字方塊會顯示所選取檔案的完整路徑。&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;[開啟檔案] 對話方塊會經過篩選設定，只顯示副檔名為 .wav 的檔案：&lt;/div&gt;&lt;pre class=&quot;brush:csharp&quot; title=&quot;程式碼&quot;&gt;dialog1.Filter = &quot;Wav Files (*.wav)|*.wav&quot;;
&lt;/pre&gt;&lt;br /&gt;
&lt;pre class=&quot;brush:csharp&quot; title=&quot;程式碼&quot;&gt;[System.Runtime.InteropServices.DllImport(&quot;winmm.DLL&quot;, EntryPoint = &quot;PlaySound&quot;, SetLastError = true)]
private static extern bool PlaySound(string szSound, System.IntPtr hMod, PlaySoundFlags flags);

[System.Flags] 
public enum PlaySoundFlags : int
{
SND_SYNC = 0x0000,
SND_ASYNC = 0x0001, 
SND_NODEFAULT = 0x0002, 
SND_LOOP = 0x0008, 
SND_NOSTOP = 0x0010,
SND_NOWAIT = 0x00002000, 
SND_FILENAME = 0x00020000, 
SND_RESOURCE = 0x00040004 
}

private void button1_Click (object sender, System.EventArgs e)
{
OpenFileDialog dialog1 = new OpenFileDialog(); 

dialog1.Title = &quot;Browse to find sound file to play&quot;;
dialog1.InitialDirectory = @&quot;c:\&quot;;
dialog1.Filter = &quot;Wav Files (*.wav)|*.wav&quot;;
dialog1.FilterIndex = 2;
dialog1.RestoreDirectory = true;

if(dialog1.ShowDialog() == DialogResult.OK) 
{ 
textBox1.Text = dialog1.FileName;
PlaySound (dialog1.FileName, new System.IntPtr(), PlaySoundFlags.SND_SYNC);
} 
}
&lt;/pre&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16pt;&quot;&gt;----------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 16pt;&quot;&gt;還有嵌入windows media player activex的方法~&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
不過好像有點太大才小用了XDDD&lt;br /&gt;
&lt;br /&gt;
新增一個Windows Media Player的控制項到Form裡面~&lt;br /&gt;
&lt;br /&gt;
然後....&lt;br /&gt;
&lt;pre class=&quot;brush:csharp&quot; title=&quot;程式碼&quot;&gt;//如果autopaly為true的話設定好url就會自動撥放了
//@的符號是告訴編譯器不要編譯反斜線~啾咪!
axWindowsMediaPlayer1.URL = @&quot;C:\Users\Lamborgini\Desktop\Gnomeregan.wmv&quot;; 

//停止撥放
axWindowsMediaPlayer1.Ctlcontrols.stop();
&lt;/pre&gt;&lt;br /&gt;
&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/dd562388(v=vs.85).aspx&quot;&gt;AxWindowsMediaPlayer Object相關屬性+方法+事件底加!&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.iteddie.com/feeds/4645587804647456466/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.iteddie.com/2010/10/c-wav.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/4645587804647456466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/4645587804647456466'/><link rel='alternate' type='text/html' href='http://www.iteddie.com/2010/10/c-wav.html' title='C# 播放wav~筆記'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiElNPmgBVM4vL5FgAXZj74khPdtFLQmpB3ekaeLzVDZvUyOzxbIT58VvkFKaShimE94eSwW7tD6jIDuFyvl2kEGRlkJ7uLpxtAiU3XHRMbu-BfvTWDG5fMBZU7kuEky8DBBw__2iUqdWjH/s72-c/0909BANAO_item.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8239546586347275958.post-2538658224598207004</id><published>2010-10-21T00:43:00.000+08:00</published><updated>2011-01-19T18:27:50.068+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="tips"/><category scheme="http://www.blogger.com/atom/ns#" term="字串"/><category scheme="http://www.blogger.com/atom/ns#" term="小密技"/><category scheme="http://www.blogger.com/atom/ns#" term="程式"/><category scheme="http://www.blogger.com/atom/ns#" term="筆記"/><title type='text'>C# 計算字串裡面的某個字串出現了幾次</title><content type='html'>&lt;div style=&quot;clear: both;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicv2M_O8QbDBU1bpAvLeyjuLTjgI1ybQ2V66KY6VEMV6JMXPud6YD6P5ZRS1AeoShsSfEjZDibb80CZd5kCM3gLhaS9672VaKBClvu0tBZW4IDjxAq6eTlFLAhxumIwUPV870YIPcI6fZ1/s1600/images+(5).jpg&quot; /&gt;&lt;/div&gt;&lt;br /&gt;
我是用RegularExpression解決的~&lt;br /&gt;
當然還有很多其他的方法~就見仁見智囉!!!&lt;br /&gt;
&lt;div style=&quot;clear: both;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFkxxaPI6XSyeFnCd_7gHSwmmPV6JNhbxhbHvo3xq-D9les6uPqpTSGK4D3ODtG2fHszD496GFS1sWdRM3cP4q8iilt55zwr-RIbe5vEhWd3b59QMV1KjdbaO6QepfeNCbV2N3-nttSnPX/s1600/ro+(3).jpg&quot; /&gt;&lt;/div&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;pre class=&quot;brush:csharp&quot; title=&quot;程式碼&quot;&gt;using System.Text.RegularExpressions;
&lt;/pre&gt;&lt;pre class=&quot;brush:csharp&quot; title=&quot;程式碼&quot;&gt;MatchCollection mc = null;
Regex re = new Regex(&quot;要計算的字串&quot;);
mc = re.Matches(&quot;要被計算要計算的字串的字串要被要計算的字串計算的要計算的字串字串&quot;);
//mc.Count 即為出現的次數~啾咪*0*
&lt;/pre&gt;&lt;div style=&quot;clear: both;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxlckEXw1aHrYMWhG9XQULuJnuYiGNO73Stmk08N6cu6A-Xx5Xhxl9EquoafJSK-fTU70XJaeDZXSo4nMDLEMa9tFLnFrgiHT2qI6_D_6wH-vuBE8dHHzAG3JlfdQYafUxPBzb2qWi4xJQ/s200/%E8%B3%8A%E7%AC%91+(7).jpg&quot; width=&quot;190&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
ps.我想...用split() 或是 substring() 應該也可以做到這個功能=口=&lt;br /&gt;
不過改天有機會再說吧XDDDD&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.iteddie.com/feeds/2538658224598207004/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.iteddie.com/2010/10/c_20.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/2538658224598207004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/2538658224598207004'/><link rel='alternate' type='text/html' href='http://www.iteddie.com/2010/10/c_20.html' title='C# 計算字串裡面的某個字串出現了幾次'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicv2M_O8QbDBU1bpAvLeyjuLTjgI1ybQ2V66KY6VEMV6JMXPud6YD6P5ZRS1AeoShsSfEjZDibb80CZd5kCM3gLhaS9672VaKBClvu0tBZW4IDjxAq6eTlFLAhxumIwUPV870YIPcI6fZ1/s72-c/images+(5).jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8239546586347275958.post-1570287071961073524</id><published>2010-10-21T00:32:00.000+08:00</published><updated>2011-01-19T18:29:12.898+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="iframe"/><category scheme="http://www.blogger.com/atom/ns#" term="tips"/><category scheme="http://www.blogger.com/atom/ns#" term="webBrowser"/><category scheme="http://www.blogger.com/atom/ns#" term="小密技"/><category scheme="http://www.blogger.com/atom/ns#" term="程式"/><category scheme="http://www.blogger.com/atom/ns#" term="筆記"/><title type='text'>C# webBrowser 操作iframe 比 js 方便好多= =</title><content type='html'>&lt;div style=&quot;clear: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicv2M_O8QbDBU1bpAvLeyjuLTjgI1ybQ2V66KY6VEMV6JMXPud6YD6P5ZRS1AeoShsSfEjZDibb80CZd5kCM3gLhaS9672VaKBClvu0tBZW4IDjxAq6eTlFLAhxumIwUPV870YIPcI6fZ1/s1600/images+(5).jpg&quot; /&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;原本想用Javascript處理的= =&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;我想存取網頁裡面&amp;lt;iframe&amp;gt;裡面的資料...&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;結果好麻煩阿= =&quot;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;後來用C#發現整個變得超輕鬆~&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;C#真的好棒啊!!!!&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNuPZ62FRaQk2m9pJX5V1cxskaxFoqNEPSGQWuW9XbeXKnigSvdtnQDm_O1_g17DYegG554aa-bqAVIQ4eIurIzv0hjiQPkga8w4YRwQyOh9cPhcdRvg3p-RHlKFdfvr3Lpu8AqLfaiZ62/s1600/%E5%B4%87%E6%8B%9C+(0).jpg&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
整理一下用法~&lt;br /&gt;
&lt;br /&gt;
1.&lt;br /&gt;
首先是讀取iframe裡面的html原始碼&lt;/div&gt;&lt;pre class=&quot;brush:csharp&quot; title=&quot;程式碼&quot;&gt;MessageBox.Show(webBrowser1.Document.Window.Frames[0].Document.Body.InnerHtml);
&lt;/pre&gt;&lt;br /&gt;
2.&lt;br /&gt;
iframe裡面被按到的連結&lt;br /&gt;
&lt;pre class=&quot;brush:csharp&quot; title=&quot;程式碼&quot;&gt;private void webBrowser1_Navigating(object sender, WebBrowserNavigatingEventArgs e)
{
string url = webBrowser1.Document.Window.Frames[&quot;main&quot;].Document.ActiveElement.GetAttribute(&quot;src&quot;);
}&lt;/pre&gt;&lt;br /&gt;
3.&lt;br /&gt;
iframe裡面某個id物件&lt;br /&gt;
&lt;pre class=&quot;brush:csharp&quot; title=&quot;程式碼&quot;&gt;//webBrowser1.Document.Window.Frames[0].Document.All[&quot;id&quot;];
&lt;/pre&gt;然後可以對屬性做存取的動作&lt;br /&gt;
&lt;pre class=&quot;brush:csharp&quot; title=&quot;程式碼&quot;&gt;string title = webBrowser1.Document.Window.Frames[0].Document.All[&quot;id&quot;].GetAttribute(&quot;title&quot;);
webBrowser1.Document.Window.Frames[0].Document.All[&quot;id&quot;].SetAttribute(&quot;title&quot;,&quot;ABCDEFG&quot;);
&lt;/pre&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7vOdsCyr7aCht9uK7e3K2ElnglAyNkHWPBeB2OeBEEG5r83MfvFUCQGUGlQvrURRftvbtXedzqfNztVjoikbe6jZilSZWj_zc5DWLn5ulqNwwJZcO25wqMAMdZQkSh2J9Q2WCJ8nCir-5/s1600/%E6%B7%AB%E7%AC%91+(3).jpg&quot; /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.iteddie.com/feeds/1570287071961073524/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.iteddie.com/2010/10/c-webbrowser-iframe-js.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/1570287071961073524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/1570287071961073524'/><link rel='alternate' type='text/html' href='http://www.iteddie.com/2010/10/c-webbrowser-iframe-js.html' title='C# webBrowser 操作iframe 比 js 方便好多= ='/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicv2M_O8QbDBU1bpAvLeyjuLTjgI1ybQ2V66KY6VEMV6JMXPud6YD6P5ZRS1AeoShsSfEjZDibb80CZd5kCM3gLhaS9672VaKBClvu0tBZW4IDjxAq6eTlFLAhxumIwUPV870YIPcI6fZ1/s72-c/images+(5).jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8239546586347275958.post-7971154677447408328</id><published>2010-10-19T23:06:00.000+08:00</published><updated>2011-01-19T18:30:05.938+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="api"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="tips"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="程式"/><category scheme="http://www.blogger.com/atom/ns#" term="筆記"/><title type='text'>C# 攔截系統訊息</title><content type='html'>&lt;div style=&quot;clear: left; margin-bottom: 1em; margin-right: 1em; text-align: left;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;116&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiN1U9EGWXokLdO9q_Lg2AlC4QbFWoZojMyD68aBOq_VQ5ZhpiBaasBdPhcO0XomeBjMw36XRPeXvsrK868N1q7tr7Yl0GlR6Mj_-GMJse3tsOowSOM7yn9U91UwErDOf7R0DlX4-GYecg/s320/msdn.jpg&quot; width=&quot;320&quot; /&gt;&lt;/div&gt;最近寫很多視窗程式都有用到這方面的東西&lt;br /&gt;
東西真多...&lt;br /&gt;
&lt;br /&gt;
windows無論你做甚麼動作他都會產生一個訊息&lt;br /&gt;
比如說 按下鍵盤,放開鍵盤,移動滑鼠,按下滑鼠,移動視窗,最小化視窗..&lt;br /&gt;
所以可以透過覆寫WndProc Method可以處理所有你想處理的訊息~&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;有關這方面的文章可以看看&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/dd229215.aspx&quot;&gt;蔡學鏞的-揭開訊息迴圈的神秘面紗&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h1 class=&quot;title&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 1.769em; font-style: normal; font-variant: normal; font-weight: bold; line-height: normal; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Control&lt;span xmlns=&quot;&quot;&gt;.&lt;/span&gt;WndProc 方法&lt;/h1&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;&amp;nbsp;處理 Windows 訊息。&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 20px; font-weight: bold;&quot;&gt;範例&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 20px; font-weight: bold;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-size: 13px; font-weight: normal;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 20px; font-weight: bold;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-size: 13px; font-weight: normal;&quot;&gt;下列程式碼範例將示範如何覆寫&amp;nbsp;&lt;b&gt;WndProc&lt;/b&gt;&amp;nbsp;方法以處理&amp;nbsp;&lt;b&gt;Message&lt;/b&gt;&amp;nbsp;結構中所示的作業系統訊息。在這個範例中處理的 WM_ACTIVATEAPP 作業系統訊息可以讓您知道另一個應用程式將成為作用中的時間。&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 20px; font-weight: bold;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-size: 13px; font-weight: normal;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;pre class=&quot;brush: csharp&quot;&gt;protected override void WndProc(ref Message m) 
{
const int WM_ACTIVATEAPP = 0x001C;
// Listen for operating system messages.
switch (m.Msg)
{
// The WM_ACTIVATEAPP message occurs when the application
// becomes the active application or becomes inactive.
case WM_ACTIVATEAPP:
// The WParam value identifies what is occurring.
appActive = (((int)m.WParam != 0));
// Invalidate to get new text painted.
this.Invalidate();
break;
//case.......more message you want to process
}

base.WndProc(ref m);
}
&lt;/pre&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 20px; font-weight: bold;&quot;&gt;備註&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;所有訊息在透過&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;&lt;span xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/system.windows.forms.control.preprocessmessage.aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;PreProcessMessage&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;&amp;nbsp;方法過濾後，都會被傳送至&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;&lt;span xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;span class=&quot;selflink&quot;&gt;WndProc&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;。&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;span class=&quot;sentence&quot; id=&quot;xn4_604aae313e8d5b33df91cd76cdace00f&quot;&gt;&lt;span xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;span class=&quot;selflink&quot;&gt;WndProc&lt;/span&gt;&lt;/span&gt;&amp;nbsp;方法完全對應於 Windows&amp;nbsp;&lt;span xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;span class=&quot;input&quot;&gt;WindowProc&lt;/span&gt;&lt;/span&gt;&amp;nbsp;函式。&lt;/span&gt;&lt;span class=&quot;sentence&quot; id=&quot;xn5_b5a94b464ee326222e97a33729b03d10&quot;&gt;如需有關處理 Windows 訊息的詳細資訊，請參閱&amp;nbsp;&lt;a href=&quot;http://go.microsoft.com/fwlink/?LinkId=181565&quot; style=&quot;color: #1364c4; text-decoration: none;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;WindowProc 函式&lt;/a&gt;&amp;nbsp;(英文)。&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;&lt;span class=&quot;label&quot; style=&quot;font-weight: bold;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;繼承者注意事項&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;span class=&quot;sentence&quot; id=&quot;xn6_86c0bf3e2166512c9595bac2210329cb&quot;&gt;繼承的控制項應呼叫基底類別的&amp;nbsp;&lt;span xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;span class=&quot;selflink&quot;&gt;WndProc&lt;/span&gt;&lt;/span&gt;&amp;nbsp;方法，以處理控制項本身不處理的任何訊息。&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
以下是一些事件的訊息代碼&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px; white-space: nowrap;&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ff468922(v=VS.85).aspx&quot; style=&quot;color: #e66a38; font-weight: bold; overflow-x: hidden; overflow-y: hidden; padding-bottom: 4pt; padding-top: 4pt; text-align: left; text-decoration: underline; white-space: nowrap;&quot; title=&quot;Window Notifications&quot;&gt;Window Notifications&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px; white-space: nowrap;&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ff468877(v=VS.85).aspx&quot; style=&quot;color: #e66a38; font-weight: bold; overflow-x: hidden; overflow-y: hidden; padding-bottom: 4pt; padding-top: 4pt; text-align: left; white-space: nowrap;&quot; title=&quot;Mouse Input Notifications&quot;&gt;Mouse Input Notifications&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 13px; white-space: nowrap;&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ff468861(v=VS.85).aspx&quot; style=&quot;color: #e66a38; font-weight: bold; overflow-x: hidden; overflow-y: hidden; padding-bottom: 4pt; padding-top: 4pt; text-align: left; white-space: nowrap;&quot; title=&quot;Keyboard Input Notifications&quot;&gt;Keyboard Input Notifications&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.iteddie.com/feeds/7971154677447408328/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.iteddie.com/2010/10/c_19.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/7971154677447408328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/7971154677447408328'/><link rel='alternate' type='text/html' href='http://www.iteddie.com/2010/10/c_19.html' title='C# 攔截系統訊息'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiN1U9EGWXokLdO9q_Lg2AlC4QbFWoZojMyD68aBOq_VQ5ZhpiBaasBdPhcO0XomeBjMw36XRPeXvsrK868N1q7tr7Yl0GlR6Mj_-GMJse3tsOowSOM7yn9U91UwErDOf7R0DlX4-GYecg/s72-c/msdn.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8239546586347275958.post-3570858950356006791</id><published>2010-10-19T20:33:00.000+08:00</published><updated>2011-01-19T18:30:34.092+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="api"/><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="tips"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><category scheme="http://www.blogger.com/atom/ns#" term="小密技"/><category scheme="http://www.blogger.com/atom/ns#" term="程式"/><category scheme="http://www.blogger.com/atom/ns#" term="筆記"/><title type='text'>C# Windows API</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitxx5Nt8FEfwfwOhQRAd6Z4mv_Ix_HjFlXYejXHm2lvpoJ91hddHX-UlpnLkYtaDz4SU4ipRrALnu89L1D47xuy4EoEpWgMuifvhkRvdu8PdlqYzOiYImR8xOoouiRehWRv1_h6yRKW9wZ/s1600/microsoft-logo.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;77&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitxx5Nt8FEfwfwOhQRAd6Z4mv_Ix_HjFlXYejXHm2lvpoJ91hddHX-UlpnLkYtaDz4SU4ipRrALnu89L1D47xuy4EoEpWgMuifvhkRvdu8PdlqYzOiYImR8xOoouiRehWRv1_h6yRKW9wZ/s320/microsoft-logo.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
好久沒寫程式了=口=&lt;br /&gt;
&lt;br /&gt;
一堆API都忘光光~&lt;br /&gt;
&lt;br /&gt;
趁現在重操舊業趕快整理起來吧...&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot;&gt;[DllImport(&quot;user32.Dll&quot;)]
private static extern int EnumWindows(EnumWindowsProc x, int y);

[DllImport(&quot;user32&quot;)]
private static extern bool EnumChildWindows(IntPtr window, EnumWindowsProc callback, int lParam);

[DllImport(&quot;user32.dll&quot;, EntryPoint = &quot;FindWindowEx&quot;, SetLastError = true)]
static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow);

[DllImport(&quot;user32.dll&quot;, EntryPoint = &quot;FindWindow&quot;, CharSet = CharSet.Unicode)]
public static extern IntPtr FindWindowByClass(string ClassName, IntPtr Nothing);

[DllImport(&quot;user32.dll&quot;, EntryPoint = &quot;FindWindow&quot;, SetLastError = true)]
static extern IntPtr FindWindowByCaption(IntPtr ZeroOnly, string lpWindowName);

[DllImport(&quot;user32.dll&quot;)]
static extern short GetKeyState(int nVirtKey);

[DllImport(&quot;user32.dll&quot;)]
private static extern Int32 GetWindowText(IntPtr hWnd, StringBuilder lpsb, Int32 count);

[DllImport(&quot;User32.dll&quot;)]
public static extern int GetWindowLong(IntPtr hWnd, int index);

[DllImport(&quot;User32.dll&quot;)]
public static extern IntPtr GetParent(IntPtr hWnd);

[DllImport(&quot;user32.dll&quot;)]
public static extern int GetWindowThreadProcessId(IntPtr handle, out int processId);

[DllImport(&quot;user32.dll&quot;, SetLastError = true, CharSet = CharSet.Auto)]
static extern int GetWindowTextLength(IntPtr hWnd);

[DllImport(&quot;user32.dll&quot;)]
static extern int GetClassName(IntPtr hWnd, StringBuilder lpClassName, int nMaxCount);

[DllImport(&quot;user32.dll&quot;)]
static extern void keybd_event(byte bVk, byte bScan, uint dwFlags, uint dwExtraInfo);

[DllImport(&quot;user32&quot;)]
public static extern void mouse_event(int dwFlags, int dx, int dy, int dwData, int dwExtraInfo);

[DllImport(&quot;user32.dll&quot;)]
public static extern bool RegisterHotKey(
IntPtr hWnd, // handle to window 
int id, // hot key identifier 
uint fsModifiers, // key-modifier options 
Keys vk // virtual-key code 
);

[DllImport(&quot;user32&quot;)]
public static extern int SetCursorPos(int x, int y);

[DllImport(&quot;User32.dll&quot;)]
public static extern Int32 SetForegroundWindow(IntPtr hWnd);

[DllImport(&quot;user32&quot;)]
public static extern Int32 SetActiveWindow(IntPtr hWnd);

[DllImport(&quot;user32.dll&quot;, EntryPoint = &quot;SendMessageA&quot;)]
private static extern int SendMessage(IntPtr hwnd, int wMsg, int wParam, int lParam);

[DllImport(&quot;User32.dll&quot;)]
public static extern IntPtr SendDlgItemMessage(IntPtr hWnd, int IDDlgItem, int uMsg, int nMaxCount, StringBuilder lpString);

[DllImport(&quot;user32.dll&quot;)]
public static extern bool UnregisterHotKey(
IntPtr hWnd, // handle to window 
int id // hot key identifier 
);
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.iteddie.com/feeds/3570858950356006791/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.iteddie.com/2010/10/c-windows-api.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/3570858950356006791'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/3570858950356006791'/><link rel='alternate' type='text/html' href='http://www.iteddie.com/2010/10/c-windows-api.html' title='C# Windows API'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitxx5Nt8FEfwfwOhQRAd6Z4mv_Ix_HjFlXYejXHm2lvpoJ91hddHX-UlpnLkYtaDz4SU4ipRrALnu89L1D47xuy4EoEpWgMuifvhkRvdu8PdlqYzOiYImR8xOoouiRehWRv1_h6yRKW9wZ/s72-c/microsoft-logo.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8239546586347275958.post-1891284382700583205</id><published>2010-10-19T19:48:00.000+08:00</published><updated>2011-01-19T18:31:22.666+08:00</updated><title type='text'>C# 複製文字到剪貼簿</title><content type='html'>#tip1&lt;br /&gt;
&lt;br /&gt;
&lt;h1 class=&quot;title&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 1.769em; font-style: normal; font-variant: normal; font-weight: bold; line-height: normal; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Clipboard.SetText 方法 (String)&lt;/h1&gt;&lt;div&gt;&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;注意：這個方法是 .NET Framework 2.0 版的新功能。&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;加入&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/system.windows.forms.textdataformat.text(v=VS.80).aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;Text&lt;/a&gt;&amp;nbsp;或&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/system.windows.forms.textdataformat.unicodetext(v=VS.80).aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;UnicodeText&lt;/a&gt;&amp;nbsp;格式 (依作業系統而定) 的文字資料至剪貼簿。&lt;/div&gt;&lt;div style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 20px; font-weight: bold;&quot;&gt;語法&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot;&gt;public static void SetText (
string text
)
&lt;/pre&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 20px; font-weight: bold;&quot;&gt;例外狀況&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 20px; font-weight: bold;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 20px; font-weight: bold;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: black; font-size: 13px; font-weight: normal;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;LW_CollapsibleArea_Container&quot; xmlns=&quot;&quot;&gt;&lt;div class=&quot;tableSection&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;table style=&quot;border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-collapse: collapse; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; width: 450px;&quot;&gt;&lt;tbody&gt;
&lt;tr style=&quot;vertical-align: top;&quot;&gt;&lt;th align=&quot;left&quot; style=&quot;background-color: #e5e5e5; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; color: black; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 1.077em; font-style: normal; font-weight: normal; height: 21px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;例外狀況類型&lt;/span&gt;&lt;/th&gt;&lt;th align=&quot;left&quot; style=&quot;background-color: #e5e5e5; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; color: black; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-style: normal; font-weight: normal; height: 21px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px; text-align: left;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;條件&lt;/span&gt;&lt;/th&gt;&lt;/tr&gt;
&lt;tr style=&quot;vertical-align: top;&quot; valign=&quot;top&quot;&gt;&lt;td style=&quot;background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px;&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/system.runtime.interopservices.externalexception(v=VS.80).aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;ExternalException&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;無法清除剪貼簿。這通常在剪貼簿由另一個處理序使用時發生。&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;vertical-align: top;&quot; valign=&quot;top&quot;&gt;&lt;td style=&quot;background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px;&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/system.threading.threadstateexception(v=VS.80).aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;ThreadStateException&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;目前執行緒 (Thread) 不是在單一執行緒 Apartment (STA) 模式。將&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/system.stathreadattribute(v=VS.80).aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;STAThreadAttribute&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;加入至應用程式的&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Main&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;方法。&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;vertical-align: top;&quot; valign=&quot;top&quot;&gt;&lt;td style=&quot;background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px;&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/system.argumentnullexception(v=VS.80).aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;ArgumentNullException&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;td style=&quot;background-color: white; border-bottom-color: rgb(187, 187, 187); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(187, 187, 187); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(187, 187, 187); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(187, 187, 187); border-top-style: solid; border-top-width: 1px; line-height: 18px; margin-bottom: 1px; margin-left: 1px; margin-right: 1px; margin-top: 1px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; padding-top: 4px;&quot;&gt;&lt;span class=&quot;parameter&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;text&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;&amp;nbsp;是 Null&amp;nbsp;參照 (即 Visual Basic 中的&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Nothing&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;) 或&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://msdn.microsoft.com/zh-tw/library/system.string.empty(v=VS.80).aspx&quot; style=&quot;color: #1364c4; text-decoration: none;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;Empty&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: small;&quot;&gt;。&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;LW_CollapsibleArea_Container&quot; xmlns=&quot;&quot;&gt;&lt;div class=&quot;LW_CollapsibleArea_TitleDiv&quot; style=&quot;margin-bottom: 19px; margin-top: 19px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3f529c; font-size: x-large;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 20px;&quot;&gt;&lt;b&gt;範例&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;pre class=&quot;brush: csharp&quot;&gt;string text;
Clipboard.SetText(text);
&lt;/pre&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
#tip2&lt;br /&gt;
&lt;br /&gt;
&lt;h1 class=&quot;title&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 1.769em; font-style: normal; font-variant: normal; font-weight: bold; line-height: normal; margin-bottom: 10px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;TextBoxBase.Copy 方法&lt;/h1&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;將文字方塊中目前選取的範圍複製到 [剪貼簿]。&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 20px; font-weight: bold;&quot;&gt;語法&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot;&gt;public void Copy ()
&lt;/pre&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #3f529c; font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 20px; font-weight: bold;&quot;&gt;範例&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot;&gt;textBox1.Copy();
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.iteddie.com/feeds/1891284382700583205/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.iteddie.com/2010/10/c_381.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/1891284382700583205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/1891284382700583205'/><link rel='alternate' type='text/html' href='http://www.iteddie.com/2010/10/c_381.html' title='C# 複製文字到剪貼簿'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8239546586347275958.post-1514444119588742393</id><published>2010-10-19T19:09:00.000+08:00</published><updated>2011-01-19T18:32:21.897+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="addon"/><category scheme="http://www.blogger.com/atom/ns#" term="firefox"/><category scheme="http://www.blogger.com/atom/ns#" term="tips"/><category scheme="http://www.blogger.com/atom/ns#" term="外掛"/><category scheme="http://www.blogger.com/atom/ns#" term="小密技"/><category scheme="http://www.blogger.com/atom/ns#" term="筆記"/><category scheme="http://www.blogger.com/atom/ns#" term="軟體"/><title type='text'>讓FireFox最上層顯示的外掛</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpCVKuYjEdfAILHoOWPfbvuIh82KQuSD0v-Q0mdDo9Tvg5nFTc1XdTYFlsEqMNv3n92rC6RDTex_pson5dYJE9ksBwNOPNcT3qRneAxBIlCueuODQa0brq1hK896wxDJGiZGmFxYYNMAyp/s1600/45018.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;85&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpCVKuYjEdfAILHoOWPfbvuIh82KQuSD0v-Q0mdDo9Tvg5nFTc1XdTYFlsEqMNv3n92rC6RDTex_pson5dYJE9ksBwNOPNcT3qRneAxBIlCueuODQa0brq1hK896wxDJGiZGmFxYYNMAyp/s400/45018.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
有這種需求才會有這種外掛!!&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://addons.mozilla.org/en-US/firefox/addon/142877/&quot;&gt;點我~啾咪~!&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCtUjRMyywI699mYDNgKNYdojjf24QjJvDjBIMy1DM0fRWfvUj8FmpQHrFAiwEVSfnPHR2f3gKxoiXQXTWfdofr6P62kmYbjawKxlzEHfCku4lYODV7O_XX2vwhLNZFNgVwIq74yZR69El/s1600/firefox.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCtUjRMyywI699mYDNgKNYdojjf24QjJvDjBIMy1DM0fRWfvUj8FmpQHrFAiwEVSfnPHR2f3gKxoiXQXTWfdofr6P62kmYbjawKxlzEHfCku4lYODV7O_XX2vwhLNZFNgVwIq74yZR69El/s200/firefox.jpg&quot; width=&quot;189&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;h3 id=&quot;more-about&quot;&gt;&lt;/h3&gt;&lt;h3 id=&quot;more-about&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #444444; font-family: &#39;helvetica neue&#39;, arial, helvetica, sans-serif; font-size: 13px; font-weight: normal; line-height: 20px;&quot;&gt;&lt;h3 id=&quot;more-about&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #011234; font-family: georgia, serif; font-size: 1.385em; font-weight: normal; line-height: 1.111em; margin-bottom: 0.778em; margin-left: 0px; margin-right: 0px; margin-top: 1.556em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;More about this add-on&lt;/h3&gt;&lt;div class=&quot;article userinput&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(201, 232, 243); border-bottom-left-radius: 3px 3px; border-bottom-right-radius: 3px 3px; border-bottom-style: solid; border-bottom-width: 1px; border-color: initial; border-left-color: rgb(201, 232, 243); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(201, 232, 243); border-right-style: solid; border-right-width: 1px; border-style: initial; border-top-color: rgb(201, 232, 243); border-top-left-radius: 3px 3px; border-top-right-radius: 3px 3px; border-top-style: solid; border-top-width: 1px; font-size: 13px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; overflow-x: visible; overflow-y: visible; padding-bottom: 1em; padding-left: 1em; padding-right: 1em; padding-top: 1em; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 1em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Very simple &quot;Always on top&quot; addon implements the same simple functionality - it allows you to add style &quot;Always on top&quot; for current Firefox window.&lt;/div&gt;&lt;h4 style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; clear: both; color: #223355; font-size: 1em; margin-bottom: 0.3em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Developer Comments&lt;/h4&gt;&lt;div class=&quot;prose userinput&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 1em; margin-left: 1em; margin-right: 1em; margin-top: 1em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 1em; margin-bottom: 1.5em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;I have searched for a long time for Firefox addon with this functionality. My search failed. Then I decided to create this very simple but very necessary (at least for me) addon.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiblTfZaVy8EU2JMYGmpBFA_mEAB-5DyYA1ewkOB3f37RwLXFQhK6Pvt4bmtkNJyIJYT7kTo2CB2wclvQgPjn42utEQO7QVPfLKsnxU7ar0nr3EePKOwtTqbyueq5zUTWlKYB9DzcBden-Z/s1600/footer-logo.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiblTfZaVy8EU2JMYGmpBFA_mEAB-5DyYA1ewkOB3f37RwLXFQhK6Pvt4bmtkNJyIJYT7kTo2CB2wclvQgPjn42utEQO7QVPfLKsnxU7ar0nr3EePKOwtTqbyueq5zUTWlKYB9DzcBden-Z/s1600/footer-logo.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;h3 id=&quot;reviews&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #011234; font-family: georgia, serif; font-size: 1.385em; font-weight: normal; line-height: 1.111em; margin-bottom: 0.778em; margin-left: 0px; margin-right: 0px; margin-top: 1.556em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;
&lt;/h3&gt;&lt;/span&gt;&lt;/h3&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.iteddie.com/feeds/1514444119588742393/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.iteddie.com/2010/10/firefox.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/1514444119588742393'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/1514444119588742393'/><link rel='alternate' type='text/html' href='http://www.iteddie.com/2010/10/firefox.html' title='讓FireFox最上層顯示的外掛'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpCVKuYjEdfAILHoOWPfbvuIh82KQuSD0v-Q0mdDo9Tvg5nFTc1XdTYFlsEqMNv3n92rC6RDTex_pson5dYJE9ksBwNOPNcT3qRneAxBIlCueuODQa0brq1hK896wxDJGiZGmFxYYNMAyp/s72-c/45018.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8239546586347275958.post-6839080940034134510</id><published>2010-10-18T13:30:00.000+08:00</published><updated>2011-01-19T18:33:30.221+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="tips"/><category scheme="http://www.blogger.com/atom/ns#" term="小密技"/><category scheme="http://www.blogger.com/atom/ns#" term="程式"/><category scheme="http://www.blogger.com/atom/ns#" term="筆記"/><title type='text'>C# 自訂ListItem類別(For WinForm)</title><content type='html'>因為ListItem只有Web才有~&lt;br /&gt;
WinForm沒有好不方便~筆記一下*0*&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsUCK-4tCwK97f9LFikAu6SsA7tT66YR0yEdvL6Din0oZNGMV25I4Dxjf6ya9e_n0jdrJ0NltRkXNKSFgZnTXJ8KL7KUmFQf7pK4dM30v2XOyGIISShFspygZ3dsYGMB0E2nHwz-lYeYPe/s200/1010show_topic.jpg&quot; width=&quot;200&quot; /&gt;&lt;/div&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush: csharp&quot; title=&quot;程式碼&quot;&gt;/// 首先添加類別ListItem：
/// 用於ComboBox或是ListBox
/// 
public class ListItem
{ 
private string id = string.Empty;
private string name = string.Empty;

//根據自己的需求繼續添加 如：private Int32 m_Index；
//建構式
public ListItem()    
{   } 

public ListItem(string sid, string sname) 
{ 
id = sid; 
name = sname; 
}

//override ToString()的動作
public override string ToString()   
{   
return this.name;
}

//設定或取得ListItem的ID
public string ID 
{ 
get
{
return this.id;
} 
set
{
this.id = value;
} 
} 

//設定或取得ListItem的Name
public string Name 
{ 
get
{
return this.name;
} 
set
{
this.name = value;
} 
} 
}
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.iteddie.com/feeds/6839080940034134510/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.iteddie.com/2010/10/c-listitemfor-winform.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/6839080940034134510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/6839080940034134510'/><link rel='alternate' type='text/html' href='http://www.iteddie.com/2010/10/c-listitemfor-winform.html' title='C# 自訂ListItem類別(For WinForm)'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsUCK-4tCwK97f9LFikAu6SsA7tT66YR0yEdvL6Din0oZNGMV25I4Dxjf6ya9e_n0jdrJ0NltRkXNKSFgZnTXJ8KL7KUmFQf7pK4dM30v2XOyGIISShFspygZ3dsYGMB0E2nHwz-lYeYPe/s72-c/1010show_topic.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8239546586347275958.post-8251194647540963815</id><published>2010-10-14T06:10:00.000+08:00</published><updated>2011-01-19T18:34:21.043+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="banao"/><category scheme="http://www.blogger.com/atom/ns#" term="plurk"/><category scheme="http://www.blogger.com/atom/ns#" term="バナ夫"/><category scheme="http://www.blogger.com/atom/ns#" term="噗浪"/><category scheme="http://www.blogger.com/atom/ns#" term="敗家全紀錄"/><category scheme="http://www.blogger.com/atom/ns#" term="生活"/><title type='text'>噗浪的バナ夫主題</title><content type='html'>最近迷上了バナ夫BANAO XDD&lt;br /&gt;
也就是傳說中的菁英又優秀的香蕉先生!&lt;br /&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://kamiojapan.jp/blog/&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgc0H1c2kucDwS88dJbHkkzQ6uNZh5JuzhzUeXGn_a1S9jTThMUhNGcgotHPOCaowdhonTpyo6SMRS7cIQ_Du4PHHDpYlO9HTDVghF2DH62x-o8z-mMq6CRA1m2ZPJYtu5E-8SYxoGxZpiW/s1600/banaoblogs.jpg&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;バナ夫日記&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
他的笑容太感人了~於是我把我的噗浪改成了香蕉人的主題!!!&lt;br /&gt;
&lt;br /&gt;
感謝&lt;a href=&quot;http://baiyu.hds.twgg.org/?p=474&quot;&gt;白毓(baiyu)&lt;/a&gt;的分享~讓我有這麼帥氣的面板可以用&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7vOdsCyr7aCht9uK7e3K2ElnglAyNkHWPBeB2OeBEEG5r83MfvFUCQGUGlQvrURRftvbtXedzqfNztVjoikbe6jZilSZWj_zc5DWLn5ulqNwwJZcO25wqMAMdZQkSh2J9Q2WCJ8nCir-5/s1600/%E6%B7%AB%E7%AC%91+(3).jpg&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
以下我就來分享我修改過的面板XDDD&lt;br /&gt;
先貼個畫面!!&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgebrSs4uSbOfLdMMMoU8Umr4zYBOIGh1WA9G6MTKGAA6tyNAqWTfIloHp24_wM_4ueswhFqAt9_31VbY1MgzVxO7PoeRfdMHoNw2D6IETJxnwsJIhZSIz47oL9TEU4-P_zY2fb42RhWQc/s1600/plurkimage.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;336&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgebrSs4uSbOfLdMMMoU8Umr4zYBOIGh1WA9G6MTKGAA6tyNAqWTfIloHp24_wM_4ueswhFqAt9_31VbY1MgzVxO7PoeRfdMHoNw2D6IETJxnwsJIhZSIz47oL9TEU4-P_zY2fb42RhWQc/s400/plurkimage.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;連語言都改成日本語XDDD&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
想要跟進バナ夫的噗浪主題的人可以一起來集氣喔XDDD&lt;br /&gt;
&lt;a href=&quot;http://www.plurk.com/installDesign/4995073-996a0ef500&quot;&gt;點我安裝&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&amp;nbsp;&amp;nbsp;---&lt;br /&gt;
工商服務時間=口=&lt;br /&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjP3V77r3qLpn-5iswGaZ6WTjJT4Y5WOEDwp3tpD-04S5iHDf2L_SYZG1rKcMClKvoDN3BTvUIXZB_7_aIxz6ZzEWVU8r7Symz6tUs9bcl5yxYa5e2jnhQmhDw1Y9DQFOZAvHN7BWx3liW0/s1600/1007BANAOchara_info.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjP3V77r3qLpn-5iswGaZ6WTjJT4Y5WOEDwp3tpD-04S5iHDf2L_SYZG1rKcMClKvoDN3BTvUIXZB_7_aIxz6ZzEWVU8r7Symz6tUs9bcl5yxYa5e2jnhQmhDw1Y9DQFOZAvHN7BWx3liW0/s1600/1007BANAOchara_info.jpg&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;バナ夫交友一覽&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&amp;nbsp;&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7_rW92LdfudSD29M_xecqsxwHkgPQxuY9uhMkh_WCshOBIWWKkchrXnMBwa6v3ixXv2ScwM32FKkTOiAaNY32XllM5fNbTAQ59toIL5CfURCV2yF8IVvynw3YPJoLxSppm5li5096PrTV/s1600/0907BANAO_lisens.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;640&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7_rW92LdfudSD29M_xecqsxwHkgPQxuY9uhMkh_WCshOBIWWKkchrXnMBwa6v3ixXv2ScwM32FKkTOiAaNY32XllM5fNbTAQ59toIL5CfURCV2yF8IVvynw3YPJoLxSppm5li5096PrTV/s640/0907BANAO_lisens.jpg&quot; width=&quot;544&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;衣服跟內褲我都好想要*0*&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiElNPmgBVM4vL5FgAXZj74khPdtFLQmpB3ekaeLzVDZvUyOzxbIT58VvkFKaShimE94eSwW7tD6jIDuFyvl2kEGRlkJ7uLpxtAiU3XHRMbu-BfvTWDG5fMBZU7kuEky8DBBw__2iUqdWjH/s1600/0909BANAO_item.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;385&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiElNPmgBVM4vL5FgAXZj74khPdtFLQmpB3ekaeLzVDZvUyOzxbIT58VvkFKaShimE94eSwW7tD6jIDuFyvl2kEGRlkJ7uLpxtAiU3XHRMbu-BfvTWDG5fMBZU7kuEky8DBBw__2iUqdWjH/s400/0909BANAO_item.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;帥氣的筆記本*0*我也想要orz....&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiElNPmgBVM4vL5FgAXZj74khPdtFLQmpB3ekaeLzVDZvUyOzxbIT58VvkFKaShimE94eSwW7tD6jIDuFyvl2kEGRlkJ7uLpxtAiU3XHRMbu-BfvTWDG5fMBZU7kuEky8DBBw__2iUqdWjH/s1600/0909BANAO_item.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiElNPmgBVM4vL5FgAXZj74khPdtFLQmpB3ekaeLzVDZvUyOzxbIT58VvkFKaShimE94eSwW7tD6jIDuFyvl2kEGRlkJ7uLpxtAiU3XHRMbu-BfvTWDG5fMBZU7kuEky8DBBw__2iUqdWjH/s1600/0909BANAO_item.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.iteddie.com/feeds/8251194647540963815/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.iteddie.com/2010/10/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/8251194647540963815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/8251194647540963815'/><link rel='alternate' type='text/html' href='http://www.iteddie.com/2010/10/blog-post.html' title='噗浪的バナ夫主題'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgc0H1c2kucDwS88dJbHkkzQ6uNZh5JuzhzUeXGn_a1S9jTThMUhNGcgotHPOCaowdhonTpyo6SMRS7cIQ_Du4PHHDpYlO9HTDVghF2DH62x-o8z-mMq6CRA1m2ZPJYtu5E-8SYxoGxZpiW/s72-c/banaoblogs.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8239546586347275958.post-8820018354507534784</id><published>2010-10-14T02:28:00.000+08:00</published><updated>2011-01-19T18:35:08.555+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="tips"/><category scheme="http://www.blogger.com/atom/ns#" term="小密技"/><category scheme="http://www.blogger.com/atom/ns#" term="程式"/><category scheme="http://www.blogger.com/atom/ns#" term="筆記"/><title type='text'>我的老天爺啊~太棒啦!</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;每次想要在blog上面貼一點HTML語法&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;就要不停的轉換 &quot;&amp;lt;&quot; ,&quot;&amp;gt;&quot; , &quot;&amp;amp;&quot; , 一大堆有的沒的...&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;不然就會不能正常顯示...&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;槓!!&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;I Hate you!!!!!!!!!! &amp;nbsp;&quot;&amp;amp;nbsp; &amp;nbsp;&amp;amp;lt; &amp;amp;gt; &amp;amp;amp;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMpBzhMP8APtZxEDi_ljeOJDhuWA0DfNarIdB5uPUvskkzAX2iKlRg0iMI_MgRF2VbK6zL3-uuMD9kAUSC5Oyel19651MPLLy0xIKUotHD8xxbRZXrqu58GhWpEjt5Xgds2ExWQ41szVbC/s200/%E6%80%92%E4%BA%86+(3).jpg&quot; width=&quot;200&quot; /&gt;&lt;/div&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
然後我發現有一個偉大的先生!!&lt;br /&gt;
好棒&amp;gt;///&amp;lt;&lt;br /&gt;
&lt;br /&gt;
竟然寫了一個轉換的小工具!!! 天啊~太聰明了!!!&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.elliotswan.com/postable/&quot;&gt;聰明的Elliotswan&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
神奇三步驟!&lt;br /&gt;
1.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKnLPeBZ507mf_0fYnw0WwT5pJnNxVX8WLyrpnPARvLlXnv20A-CHSQ2PactVP0FW6K4qxfPbWp8aA2UKW_v_NVZHJT7XRJ3XkSuzzEiJD_-dZv8Mu1xxK2jdw43L1HDBg2IE-AUF5k7dJ/s1600/s1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;221&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKnLPeBZ507mf_0fYnw0WwT5pJnNxVX8WLyrpnPARvLlXnv20A-CHSQ2PactVP0FW6K4qxfPbWp8aA2UKW_v_NVZHJT7XRJ3XkSuzzEiJD_-dZv8Mu1xxK2jdw43L1HDBg2IE-AUF5k7dJ/s400/s1.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-NdUYvPFeWA49eBT0f0txup24-liQ0KsWL1Pss2VciNRiCY5MJZZp3cAgoYiFmwqp5LLPYOr-ZBV9aE6qYT8IeswtdH5KcWR13RoXTk0RK9PuUp0A6wqNdqaC7BqSluHmMRaCAmDTUdm4/s1600/s2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;218&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-NdUYvPFeWA49eBT0f0txup24-liQ0KsWL1Pss2VciNRiCY5MJZZp3cAgoYiFmwqp5LLPYOr-ZBV9aE6qYT8IeswtdH5KcWR13RoXTk0RK9PuUp0A6wqNdqaC7BqSluHmMRaCAmDTUdm4/s400/s2.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLL0f8mTkU_3i9frREruUr6wrZ_QsfBR_tl2sWhK5H3TJxh6vLt4TqIodQyU0WqjLLSdPu2AS7H98ZJ0AgHk29GBxNV7sTgOiZzyDY7WxI7BdGuk2M3fFCuRPM57L0BEWSlPW_R0rY2jtt/s1600/s3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;202&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLL0f8mTkU_3i9frREruUr6wrZ_QsfBR_tl2sWhK5H3TJxh6vLt4TqIodQyU0WqjLLSdPu2AS7H98ZJ0AgHk29GBxNV7sTgOiZzyDY7WxI7BdGuk2M3fFCuRPM57L0BEWSlPW_R0rY2jtt/s400/s3.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
太美妙了吧=口=</content><link rel='replies' type='application/atom+xml' href='http://www.iteddie.com/feeds/8820018354507534784/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.iteddie.com/2010/10/blog-post_13.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/8820018354507534784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8239546586347275958/posts/default/8820018354507534784'/><link rel='alternate' type='text/html' href='http://www.iteddie.com/2010/10/blog-post_13.html' title='我的老天爺啊~太棒啦!'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMpBzhMP8APtZxEDi_ljeOJDhuWA0DfNarIdB5uPUvskkzAX2iKlRg0iMI_MgRF2VbK6zL3-uuMD9kAUSC5Oyel19651MPLLy0xIKUotHD8xxbRZXrqu58GhWpEjt5Xgds2ExWQ41szVbC/s72-c/%E6%80%92%E4%BA%86+(3).jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>