<?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: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-1092918726284349136</id><updated>2011-11-28T08:35:01.084+08:00</updated><category term='C#'/><category term='問答'/><category term='Crystal Report'/><category term='WF'/><category term='關於我的新書'/><category term='Visual Studio'/><category term='MVVM'/><category term='Visual Basic'/><category term='Windows Form'/><category term='Expression Blend'/><category term='.NET 3.0'/><category term='Windows Server 2008'/><category term='常用工具及下載'/><category term='.NET Framework'/><category term='內容勘誤'/><category term='WPF'/><category term='Visual Studio 2010'/><category term='童言童語'/><category term='ASP.NET'/><category term='Silverlight'/><category term='ADO.NET'/><title type='text'>Anita 的.NET 世界</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>57</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-3723466067959040317</id><published>2011-11-19T14:42:00.001+08:00</published><updated>2011-11-19T15:07:19.218+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Crystal Report'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Studio 2010'/><title type='text'>終於有WPF 版的Crystal Report Viewer</title><summary type='text'>最近有空試了一下Crystal Report for Visual Studio 2010 的功能

看到文件上有關於WPF 版的Crystal Report Viewer的控制項, 

測試了一下發現,
CrystalReportViewer for WPF的控制項竟沒有ReportSource的屬性, 

啊~這樣要怎麼把報表物件塞入呢?...


找了半天才看到它有個ViwerCore屬性, 下有個ReportSource屬性, 
真是曲折...
要這樣寫才能塞Report Object :

reportViewer.ViewerCore.ReportSource = new CrystalReport1();</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/3723466067959040317/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2011/11/wpf-crystal-report-viewer.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/3723466067959040317'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/3723466067959040317'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2011/11/wpf-crystal-report-viewer.html' title='終於有WPF 版的Crystal Report Viewer'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-2595527377718148572</id><published>2011-11-18T14:31:00.004+08:00</published><updated>2011-11-18T16:43:37.171+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Crystal Report'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Studio 2010'/><title type='text'>Crystal Report 2011 與 Visual Studio 2010 的問題</title><summary type='text'>Visual Studio 2010 不再內鍵 Crystal Report的元件 (之前曾提過)
很多人說有啊!!
的確你可以在Visual Studio 2010 中可以看到Crystal Report 專案範本, 
不過開啟打開之後你就知道了, Crystal Report 的元件必須另外下載.
但也別太為難, 下載安裝之後就可以使用, 並不需要額外購買授權.

最近在使用Crystal Report 2011 與 Visual Studio 2010 
意外發現, 安裝Crystal Report 2011 之後, 在Visual Studio 2010中並沒Crystal Report 元件的蹤跡, 看了文件之後, 
真象大白 (以下copy 自SAP SAP® CRYSTAL SOLUTIONS 2011常見問題集): 

SAP Crystal Reports 2011 </summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/2595527377718148572/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2011/11/crystal-report-2011-visual-studio-2010.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/2595527377718148572'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/2595527377718148572'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2011/11/crystal-report-2011-visual-studio-2010.html' title='Crystal Report 2011 與 Visual Studio 2010 的問題'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-7134017028416357871</id><published>2010-12-04T11:09:00.001+08:00</published><updated>2010-12-04T11:10:39.880+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WPF'/><title type='text'>WPF 在 XAML 中靜態成員的參考</title><summary type='text'>參考物件成員  在XAML 中如果要Binding 某個物件時, 可以在Resources 中定義邏輯資源, Ex:    圖中被圈選這行會在初始化時在記憶體建立一個型別為Product的物件 (呼叫其建構函式). 在XAML中參考這個資源時, 可以使用StaticResource 或是 DynamicResource 關鍵字.  參考靜態成員  但如果類別只有靜態成員 (且不可呼叫instance 的建構函式), 又要Binding 到控制項時, 就不能使用將之定義在邏輯資源中了. 因為會在初始化時呼叫建構函式時出現錯誤.  這時後就要用{x: Static 類別.靜態成員}, Ex:    </summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/7134017028416357871/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2010/12/wpf-xaml.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/7134017028416357871'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/7134017028416357871'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2010/12/wpf-xaml.html' title='WPF 在 XAML 中靜態成員的參考'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_gpyBSv6z2Mg/TPmw5kcoh3I/AAAAAAAAAa8/z33aC7BiuWI/s72-c/image_thumb%5B14%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-23243489016013245</id><published>2010-10-23T10:43:00.001+08:00</published><updated>2010-10-23T10:50:33.443+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>圖檔放在dll 中, 如何在網頁中動態參考?</title><summary type='text'>這是同學在ASP.NET課程問的問題.  解法  step1: 建立Class Library  step2: Add Reference : System.Web  step3: 將圖檔放入專案中, 並設定檔案屬性為 – Embedded Resource  step4: 在Class1.cs 的 Class 之前 宣告 WebResource  using System.Web.UI;   [assembly: WebResource("命名空間.圖檔.gif", "image/gif")]  step5: Build 專案  step6: 在Web Site –&gt; Add Reference –&gt; step1 的 Class Library  step7: 在網頁上放入Image或ImageButton  step8: 在Page_Load 事件 --  </summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/23243489016013245/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2010/10/dll.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/23243489016013245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/23243489016013245'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2010/10/dll.html' title='圖檔放在dll 中, 如何在網頁中動態參考?'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-4519331747151222336</id><published>2010-10-08T16:37:00.001+08:00</published><updated>2010-10-08T16:53:31.475+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MVVM'/><category scheme='http://www.blogger.com/atom/ns#' term='WPF'/><title type='text'>WPF MVVM 的專案Template 下載</title><summary type='text'>開發WPF應用程式的Design Pattern – Model-View-ViewModel.  若要開發需自行從WPF 應用程式專案建立MVVM所需的基本內容, 如果需要像ASP.NET 的MVC 從專案範本建立, 可以從 New Project 的左邊畫面按 [Online] –&gt; WPF , 右邊畫面 雙擊 [WPF MVVM Application] 即可下載安裝這個範本 .     建立專案之後便可看到Solution Explorer 已經先建立好必要的目錄及類別:    </summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/4519331747151222336/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2010/10/wpf-mvvm-template.html#comment-form' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/4519331747151222336'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/4519331747151222336'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2010/10/wpf-mvvm-template.html' title='WPF MVVM 的專案Template 下載'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_gpyBSv6z2Mg/TK7YWX5_V4I/AAAAAAAAAas/zXFK25uA_1I/s72-c/mvvmProject%20Template_thumb%5B6%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-6847742892941691226</id><published>2010-07-06T16:32:00.002+08:00</published><updated>2010-07-06T16:37:03.008+08:00</updated><title type='text'>Visual Basic 2010 開發實戰及書系即將上市囉~</title><summary type='text'>努力了半年之久, 終於完成了!!天瓏有預售唷!!</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/6847742892941691226/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2010/07/visual-basic-2010.html#comment-form' title='5 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/6847742892941691226'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/6847742892941691226'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2010/07/visual-basic-2010.html' title='Visual Basic 2010 開發實戰及書系即將上市囉~'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_gpyBSv6z2Mg/TDLrF-RJbPI/AAAAAAAAAZ4/tNMEIql2Yic/s72-c/VB-FINAL.jpg' height='72' width='72'/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-5795044824276673289</id><published>2010-06-11T16:14:00.001+08:00</published><updated>2010-06-11T16:17:55.067+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual Studio 2010'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>ASP.NET Chart 控制項部署問題</title><summary type='text'>最近將有包含用到Chart 控制項進行部署到iis, 部署後執行出現這個錯誤:     跟著網頁提示的錯誤訊息進行修正:      在Web.config 的&lt;system.webServer&gt;區段加上:      &lt;validation validateIntegratedModeConfiguration="false"/&gt;     配合以下設定, 在C磁碟建立 TempImageFiles 目錄:  &lt;appSettings&gt;         &lt;add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\TempImageFiles\;" /&gt;       &lt;/appSettings&gt;    重新部署後就可以順利執行了!!    </summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/5795044824276673289/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2010/06/aspnet-chart.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/5795044824276673289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/5795044824276673289'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2010/06/aspnet-chart.html' title='ASP.NET Chart 控制項部署問題'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_gpyBSv6z2Mg/TBHwQkRtkrI/AAAAAAAAAZY/qcbwP5P_eEQ/s72-c/image_thumb%5B29%5D.png?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-2679569705899870134</id><published>2010-03-30T09:49:00.001+08:00</published><updated>2010-03-30T15:30:38.251+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Crystal Report'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Studio 2010'/><title type='text'>VS2010 的 Crystal Report 不見了!</title><summary type='text'>負責Crystal Report 產品的同事告訴我說, VS2010裡不會在放Crystal Report, 必須另外下載!  拿到VS2010 Beta 時打開VS的專案範本, 有看到Crystal Report的範本:     一直很疑惑, 有啊!! 還在啊!!  昨天心血來潮真的去開一個Crystal Report的專案, 得到這個畫面:      果然, 需要另外下載…  是 Microsoft 有了自家的 Report 產品, 就不主動內建Crystal Report , 還是其他原因呢? (不得而知)  不過, 至少還留著專案範本, 留個Download 的 Link 位置, 也算是一種友善吧!!  </summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/2679569705899870134/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2010/03/vs2010-crystal-report.html#comment-form' title='3 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/2679569705899870134'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/2679569705899870134'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2010/03/vs2010-crystal-report.html' title='VS2010 的 Crystal Report 不見了!'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_gpyBSv6z2Mg/S7FYkUp4hiI/AAAAAAAAAYk/Lk61XjNaF44/s72-c/1_thumb%5B7%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-3219421531396376147</id><published>2010-03-25T15:42:00.001+08:00</published><updated>2010-03-25T15:44:09.140+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WPF'/><category scheme='http://www.blogger.com/atom/ns#' term='Silverlight'/><title type='text'>WPF資料繫結的驗證方式</title><summary type='text'>WPF資料繫結的驗證方式作法有三種:     使用ValidationRules     使用ValidatesOnDataErrors     使用ValidatesOnDataException    這三種方式都是Bindng物件的屬性, 作法卻不大相同.  使用ValidationRules  必須建立一個類別並繼承ValidationRule, 在裡頭的Validate方法撰寫驗證程式碼.  然後在XAML上必須這樣寫:  &lt;DatePicker Grid.Column="1" Grid.Row="2" Name="DatePicker1" &gt;  &lt;DatePicker.SelectedDate&gt;  &lt;Binding Path="CreationTime"&gt;  &lt;Binding.ValidationRules&gt;  &lt;local:DateRangeValidationRule /</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/3219421531396376147/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2010/03/wpf.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/3219421531396376147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/3219421531396376147'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2010/03/wpf.html' title='WPF資料繫結的驗證方式'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-2900702364783161214</id><published>2010-03-24T18:19:00.001+08:00</published><updated>2010-03-24T18:23:45.908+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual Studio 2010'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic'/><title type='text'>我愛Visual Basic 2010</title><summary type='text'>LINQ語法是可以是一串很長的指令, 在C#裡並不覺得很長的指令有什麼困擾, 反正按個Enter 換行就好, 程式仍可以很好閱讀.  於是Visual Basic 2010 為了LINQ語法新增一個功能, 就是可以在很長的LINQ或方法參數上換行不需加上”空白 底線”     雖然早就在Visual Basic 2010的Beta 版就知道這項功能, 但這次寫書用到大量很長的Visual Basic程式時…  心中不免讚嘆”我愛Visual Basic 2010”!!  </summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/2900702364783161214/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2010/03/visual-basic-2010.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/2900702364783161214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/2900702364783161214'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2010/03/visual-basic-2010.html' title='我愛Visual Basic 2010'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_gpyBSv6z2Mg/S6nnLrJhIEI/AAAAAAAAAXs/N3SNb-OfPE0/s72-c/delete%5B5%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-6731084146792924729</id><published>2010-03-20T15:29:00.004+08:00</published><updated>2010-03-20T15:47:37.542+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WPF'/><category scheme='http://www.blogger.com/atom/ns#' term='Silverlight'/><category scheme='http://www.blogger.com/atom/ns#' term='Expression Blend'/><title type='text'>在Expression Blend 4 畫星星</title><summary type='text'>在Blend 3 的專案裡想畫出除了方形與圓形外的形狀, 有兩個方式:   1. 使用畫筆   2. 使用Expression Design的形狀工具做出要的形狀 (例如星星), 然後copy &amp; paste 到Blend     你還有想到其他方式嗎?   總而言之, 就是Blend 3裡不能像PowerPoint 有常用形狀讓你直接使用...     Blend 4有改進了唷, 最近下載Blend 4 Beta (2010/3/16公佈的) 版本在Asserts(資產) 看到Shapes 項目有18種形狀可以選取. 讚啦!! (對於未受畫圖訓練的我來說, 至少有一些基本形狀可以使用)     </summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/6731084146792924729/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2010/03/expression-blend-4.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/6731084146792924729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/6731084146792924729'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2010/03/expression-blend-4.html' title='在Expression Blend 4 畫星星'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/_gpyBSv6z2Mg/S6R9mMi59UI/AAAAAAAAAXo/YDGgfhCjeyM/s72-c/deleteme_thumb%5B5%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-4073615368142125301</id><published>2010-03-16T12:09:00.008+08:00</published><updated>2010-03-16T14:48:56.071+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WPF'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Studio 2010'/><category scheme='http://www.blogger.com/atom/ns#' term='Silverlight'/><title type='text'>Silverlight 4 RC 及Expression Blend 4 Beta 發佈</title><summary type='text'>Silverlight 4 RC 已發佈Visual Studio 2010 RC 因為是比較早發佈, 內建的是Silverlight 3 SDK, 若要在Visual Studio 2010 RC 上開發SL4, 要再安裝Silverlight 4 Tools for Visual Studio 2010 &amp; Silverlight 4 Toolkit.另外Expression Blend 4 Beta 也已於3/12/2010 發佈了, 它的專案可以與Visual Studio 2010 RC 相容. 同時它的文件上寫說可以與Blend 3 並行安裝細節參考http://silverlight.net/getstarted/silverlight-4/3/12/2010 發佈的Expression Blend 4 Beta 下載位址http://www.microsoft.com/</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/4073615368142125301/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2010/03/silverlight-4-rc-expression-blend-4.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/4073615368142125301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/4073615368142125301'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2010/03/silverlight-4-rc-expression-blend-4.html' title='Silverlight 4 RC 及Expression Blend 4 Beta 發佈'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-4385997814341724461</id><published>2010-01-24T17:00:00.002+08:00</published><updated>2010-01-24T17:03:41.794+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET Framework'/><title type='text'>Installer 類別裡如何取得實際安裝路徑?</title><summary type='text'>會被帶入 Context.Parameters 的參數裡, 安裝路徑的名稱是"assemblypath"可以用以下程式追蹤得知安裝程式還帶那些參數進去.        public override void Install(IDictionary stateSaver)        {            base.Install(stateSaver);            string msg = "";            foreach (DictionaryEntry entry in this.Context.Parameters)            {                msg += entry.Key + "," + entry.Value + "\r\n";            }            MessageBox.Show("</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/4385997814341724461/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2010/01/installer.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/4385997814341724461'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/4385997814341724461'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2010/01/installer.html' title='Installer 類別裡如何取得實際安裝路徑?'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-5233956368773943019</id><published>2010-01-24T14:41:00.002+08:00</published><updated>2010-01-24T14:44:19.241+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET Framework'/><title type='text'>如何清除GAC 的Download cache?</title><summary type='text'>很簡單gacutil /cdl就可以了~參考: http://florent.clairambault.fr/gac-download-cache</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/5233956368773943019/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2010/01/gac-download-cache.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/5233956368773943019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/5233956368773943019'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2010/01/gac-download-cache.html' title='如何清除GAC 的Download cache?'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-6336920681253743441</id><published>2009-12-25T16:56:00.005+08:00</published><updated>2009-12-25T17:12:58.810+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WPF'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Studio 2010'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Studio'/><title type='text'>WPF 4 的Data binding</title><summary type='text'>VS 2010 中WPF 4 在Data binding 增加一些新功能, 它終於有原本Windows From 中 Data 選單中的功能 (連到資料來源後, 直接拖拉就可做出資料表單) 在VS2008 WPF專案裡若要指定DataBinding, 只有一個方法那就是輸入XAML, 否則就得要用Expression Blend設計工具才有比較親切的Data Binding屬性視窗 VS2010 WPF 專案屬性視窗終於有了比較親切的Data Binding 屬性功能.</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/6336920681253743441/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2009/12/wpf-4-data-binding.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/6336920681253743441'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/6336920681253743441'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2009/12/wpf-4-data-binding.html' title='WPF 4 的Data binding'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_gpyBSv6z2Mg/SzSABlkTY1I/AAAAAAAAAWY/KtLIWPWBCaA/s72-c/Databinding.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-4235351397091192344</id><published>2009-06-01T16:57:00.003+08:00</published><updated>2009-06-01T17:04:14.087+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WF'/><title type='text'>如何傳入/出參數到Workflow</title><summary type='text'>step1. 在Workflow 類別宣告屬性:        public string UserName { get; set; }               public string Result { get; set; }step2. 在Host 程式啟動Workflow 之前建立一個Dictionary 的集合         Dictionary param = new Dictionary();         param.Add("UserName", textBox1.Text);         param.Add("Result", null);step3.  CreateWorkflow 時在第二個參數傳入集合         WorkflowInstance instance = workflowRuntime.CreateWorkflow(typeof(</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/4235351397091192344/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2009/06/workflow.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/4235351397091192344'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/4235351397091192344'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2009/06/workflow.html' title='如何傳入/出參數到Workflow'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-3896777448443173878</id><published>2009-05-10T11:30:00.009+08:00</published><updated>2009-05-10T14:26:38.333+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET Framework'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>ASP.NET Web Site 使用Trace.WriteLine()無效??</title><summary type='text'>ASP.NET 有提供追蹤的功能, 你在網頁是會這樣寫:Trace.Write("category","message")這個實際上是System.Web.TraceContext類別. 它當然不會有問題.這裡說的是System.Diagnostics 命名空間中的Trace 類別.當你在網頁中撰寫Trace.WriteLine() 的指令時, 會發現無效, 不管是不是在除錯模式下, 它無法被列印出來.這是因為Visual Studio的Web Site 專案模式, 對於網頁的編譯動作並沒有將TRACE 定義編譯進來, 所以Trace 指令會無效.因此, 必須修改Web.config 的&lt;system.codedom&gt; 中的 &lt;compiler ...要加上 compilerOptions, VB 與 C# 的參數不同.VB&lt;compiler language="vb;vbs;</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/3896777448443173878/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2009/05/aspnet-web-site-tracewriteline.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/3896777448443173878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/3896777448443173878'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2009/05/aspnet-web-site-tracewriteline.html' title='ASP.NET Web Site 使用Trace.WriteLine()無效??'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-5578157463209372859</id><published>2009-05-02T16:14:00.005+08:00</published><updated>2009-06-24T19:30:40.271+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET Framework'/><category scheme='http://www.blogger.com/atom/ns#' term='問答'/><title type='text'>List 的 其他排序選擇</title><summary type='text'>List 有提供 Sort 方法, 當你呼叫它時, 它會根據項目的型別裡實作的IComparable介面的CompareTo方法排序.同學問到了, 如果我想提供其他的排序方式, 怎麼寫?可以在項目的型別裡加上新的比較方法:Shared Function EmpSortByName(ByVal emp1 As Employee, ByVal emp2 As Employee) As IntegerReturn emp1.Name.CompareTo(emp2.Name)End Function然後在呼叫Sort 方法時指定這個DelegateDim employees As New List(Of Employee)employees.Add(New Employee(101, "Anita", #7/1/1999#))employees.Add(New Employee(201, "</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/5578157463209372859/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2009/05/list.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/5578157463209372859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/5578157463209372859'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2009/05/list.html' title='List 的 其他排序選擇'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-3020748737144439966</id><published>2009-04-13T15:10:00.003+08:00</published><updated>2009-04-13T15:18:01.699+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET Framework'/><category scheme='http://www.blogger.com/atom/ns#' term='問答'/><title type='text'>Window Service 如何偵錯?</title><summary type='text'>這是4/12 上 u2956c .NET Framework 課程時同學問的問題.解法步驟如下:首先啟用你寫好的Windows Service開啟要偵錯的Windows Service 專案, 並設定中斷點.接著Tools  --&gt; Attach to Process, 選取服務的Proccess 項目 (如果找不到請勾選 Show processes from all users, 就可找到)這樣就可以進入Windows 服務的偵錯模式了.</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/3020748737144439966/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2009/04/window-service.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/3020748737144439966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/3020748737144439966'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2009/04/window-service.html' title='Window Service 如何偵錯?'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-8175020818347686562</id><published>2009-04-09T17:37:00.003+08:00</published><updated>2009-04-09T19:12:35.810+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET 3.0'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows Server 2008'/><title type='text'>在Windows Server 2008 上使用.NET 3.0的特性</title><summary type='text'>Winwdows Server 2008改變很大, 有多大, 我不是這方面的專家, 只就我需要用到的功能來討論.如果你是一個開發者, 網頁的開發者, WPF, WCF, WF (.NET 3.0)的開發者那麼你一定需要用到IIS, 以及.NET Framework 3.0 的一些元件, 在Windows Server 2008這些預設並不會安裝進來, 必須自行安裝.如果你與我一樣, 直接到新增移除程式去安裝的話, 下場就是...找不到你要的項目...嗚~那些Windows 元件到那裡去了?答案是在 "Server Manager"接下來是我的筆記, 只要按步驟就可找到要的項目了.安裝IIS如果這台 Server 準備當做 Web Server, 那麼它就是擔任一個 Web Server 的角色, 所以要到Server Manager 裡的Roles 項目, Add Roles 裡就可找到</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/8175020818347686562/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2009/04/windows-server-2008-net-30.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/8175020818347686562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/8175020818347686562'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2009/04/windows-server-2008-net-30.html' title='在Windows Server 2008 上使用.NET 3.0的特性'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-2766003733724413950</id><published>2009-04-09T17:26:00.002+08:00</published><updated>2009-04-09T17:36:24.410+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Server 2008'/><title type='text'>將Windows Server 2008 桌面主題變成Vista 的Aero</title><summary type='text'>Windows Server 2008 的工作主要是後端的服務工作, 不太需要太美的畫面.所以它出廠預設使用的桌面主題以Windows Classic 或 Standard 為主.你無法在 Appearance Settings 裡看到 Windows Aero 的項目.可是, 如果你像我一樣, 必須有個Server 環境同時又會在上面開發Client 端的軟體, 使用Windows Server 2008 時, 你一定很希望看到如同使用者會看到的Vista 界面, 有解嗎?有的.如下步驟:1.在Server Manager的 Features 項目上, 按Add Features, 將Desktop Experience 項目安裝進來.2.重新開機.3.Administrative Tools --&gt; Service , 啟用Theme4.在Desktop 上按右鍵, 選</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/2766003733724413950/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2009/04/windows-server-2008-vista-aero.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/2766003733724413950'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/2766003733724413950'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2009/04/windows-server-2008-vista-aero.html' title='將Windows Server 2008 桌面主題變成Vista 的Aero'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-6519609982272628579</id><published>2008-11-26T01:00:00.004+08:00</published><updated>2009-08-02T10:09:57.630+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET Framework'/><title type='text'>應用程式如何得知 "控制台" --&gt; "地區語言選項" 的改變</title><summary type='text'>系統事件的使用者喜好設定變更時可以藉由 命名空間Microsoft.Win32 的 SystemEvents.UserPreferenceChanged 事件進行通知, 以下程式是註冊該事件Visual BasicAddHandler SystemEvents.UserPreferenceChanged, AddressOf SystemEvents_UserPreferenceChanged        DisplayCultureInfo()C#SystemEvents.UserPreferenceChanged += new UserPreferenceChangedEventHandler(SystemEvents_UserPreferenceChanged); 它的事件參數 UserPreferenceChangedEventArgs 的 Category </summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/6519609982272628579/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/11/blog-post_26.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/6519609982272628579'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/6519609982272628579'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/11/blog-post_26.html' title='應用程式如何得知 &amp;quot;控制台&amp;quot; --&amp;gt; &amp;quot;地區語言選項&amp;quot; 的改變'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-268914820372388874</id><published>2008-11-09T15:47:00.002+08:00</published><updated>2008-11-26T01:05:25.837+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Studio'/><title type='text'>ASP.NET 專案的 Profile</title><summary type='text'>如果你使用Visual Studio的 File --&gt; New Web Site 來設計專案時, Web.config定義好Profile 的屬性並存檔之後, 在程式中使用Profile 會有Intellisence 自動列表相關屬性.   WebSite模式是將profile的properties 建立成一個Strongly Type, 請看下圖:     可是如果使用File --&gt; New Project , 建立ASP.NET Web Application時, Web.config定義好Profile 的屬性並存檔之後, 在程式中使用Profile, Intellisence 所列表的資訊竟與前者完全不同, 而且並沒有定義好的屬性... 真是傷腦筋!!   用Object Browser 完全看不到Strongly type 的Profile類別...     這難道就不能用</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/268914820372388874/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/11/aspnet-profile.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/268914820372388874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/268914820372388874'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/11/aspnet-profile.html' title='ASP.NET 專案的 Profile'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_gpyBSv6z2Mg/SRaeuNJmsJI/AAAAAAAAARI/M6V4e9Z_Wts/s72-c/1%5B7%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-6116318803592319675</id><published>2008-11-09T11:55:00.005+08:00</published><updated>2008-11-09T14:16:50.654+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>ASP.NET快取之SQL相依性</title><summary type='text'>除了原來的CacheDependency 針對File相依性決定移除Cache之外, ASP.NET 2.0 新增了SQL 相依性的功能, 是針對SQL Server 的Table 或是查詢進行變更時, 移除Cache 的策略. 它提供了兩種方式, 輪詢模式 查詢通知 輪詢模式只支援SQL Server 7.0 (含)以上的版本, 由ASP.NET主動定期向SQL Server詢問Table 是否遭到異動, 以決定是否移除快取.使用輪詢模式必須執行以下動作:執行aspnet_regsql, 在資料庫及資料表設定異動檢查 Aspnet_regsql –S 伺服器名稱 –E –d 資料庫 -ed –t 資料表 –etasp.net 的web.config 設定輪詢的時間及連線字串 &lt;caching&gt;    &lt;sqlCacheDependency enabled="true" pollTime</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/6116318803592319675/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/11/sql.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/6116318803592319675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/6116318803592319675'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/11/sql.html' title='ASP.NET快取之SQL相依性'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-3272903754278589887</id><published>2008-11-08T14:08:00.006+08:00</published><updated>2008-11-08T14:19:59.481+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>內嵌DropDownList, 欄位值為Null時怎麼辦</title><summary type='text'>ASP.NET 2.0 小技巧  在GridView在編輯模式時內嵌DropDownList, 當對應的那筆資料欄位值為Null時怎麼辦?  這是在上ASP.NET 課程時同學問的問題.     欄位Null值時那個DropDownList 的SelectedValue無法對應到對的值, 所以網頁就會出現錯誤. 怎麼解決呢?  如果那個欄位不能設計成不可為Null值, 那只好在DropDownList裡多加一個可以給SelectedValue對應到的值.  作法是:  當Null值被對Building 到SelectedValue時, 那個值實際上是一個空字串.  所以可以在DropDownList的Items 加上一個項目, Text 為"請選擇", Value為空值.  &lt;asp:ListItem Value=""&gt;請選擇&lt;/asp:ListItem&gt;  而且必須設定</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/3272903754278589887/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/11/dropdownlist-null.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/3272903754278589887'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/3272903754278589887'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/11/dropdownlist-null.html' title='內嵌DropDownList, 欄位值為Null時怎麼辦'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_gpyBSv6z2Mg/SRUs02i0ffI/AAAAAAAAAQ8/bbdOWArJLLU/s72-c/1%5B8%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-5907630018567320527</id><published>2008-11-04T15:32:00.001+08:00</published><updated>2008-11-04T15:32:34.396+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WPF'/><title type='text'>WPF 的Command 是什麼?</title><summary type='text'>WPF 隨手筆記  先別管Command 是什麼?  首先我們先回到傳統Windows Forms 的觀念裡, 如果你需要一個功能存檔功能, 你會怎麼設計?  一定很多人馬上舉手說, 我知道: "寫在Button 的 Click 事件", 或是有人會說 "建立一組選單, 在選單項目的事件寫上存檔的功能" ...等.  OK, 那如果同時要提供快捷鍵, 工具箱也有對應功能呢? 當然這在Windows Forms裡不難辦到.     相同的問題在WPF 裡要怎麼設計, 可以用相同的方式來做.  不過WPF提供了更聰明重用性更高的 Command, Command 的觀念是將這些可能用Button, Menu, ToolBar, 快捷鍵呼叫的功能統一定義在Command 裡, 以上面這個例子, 我可以設計一個叫Save 的Command, 然後呢, 如果需要用在某個Button, </summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/5907630018567320527/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/11/wpf-command.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/5907630018567320527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/5907630018567320527'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/11/wpf-command.html' title='WPF 的Command 是什麼?'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-1370988948865707340</id><published>2008-11-04T13:34:00.003+08:00</published><updated>2008-11-04T15:16:52.119+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WPF'/><title type='text'>什麼是Dependency Property</title><summary type='text'>WPF 隨手筆記  中文譯為依存屬性, 是WPF 引進的新屬性.  為何需要Dependency Property?  先看看一般.NET 物件, 一般Windows 控制項的屬性皆為Instance Property, 以Button為例, 若Button有96個Property, 那麼建立一個Button物件, 就得佔用96Property 所需的空間, 當然Window Forms 2.0的Control屬性或許沒有那麼多, 也就不會考慮佔用太多記憶體空間的問題.  但是WPF 的控制項可以提供相當高彈性的畫面設計, 相對的所需的屬性就會很多, 可又未必每個屬性都會用的到, 若全部設計成Instance 的Property, 那WPF 應用程式的記憶體最低需求將會很可觀.  於是WPF 引進Dependency Property 的觀念, 將一些Property 從控制項的</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/1370988948865707340/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/11/dependency-property.html#comment-form' title='3 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/1370988948865707340'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/1370988948865707340'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/11/dependency-property.html' title='什麼是Dependency Property'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-3946075050473583985</id><published>2008-11-03T11:31:00.001+08:00</published><updated>2008-11-03T11:31:01.794+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WPF'/><title type='text'>一個控制項繫結多個欄位</title><summary type='text'>WPF隨手筆記  WPF 的資料繫結允許多個欄位與一個控制項繫結, 使用以下步驟說明:     撰寫一類別, 實作IMultiValueConverter介面, 處理多個欄位連接成一個值的作業          public class NameConverter : IMultiValueConverter {         public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)        {                       string name;            name = values[0] + " " + values[1];                       </summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/3946075050473583985/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/11/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/3946075050473583985'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/3946075050473583985'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/11/blog-post.html' title='一個控制項繫結多個欄位'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/_gpyBSv6z2Mg/SQ5wdLCSaCI/AAAAAAAAAQg/HWmbyMAiwIM/s72-c/1%5B7%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-592524108826383559</id><published>2008-10-31T16:34:00.002+08:00</published><updated>2008-11-03T11:21:21.260+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WPF'/><title type='text'>繫結多個不同的集合</title><summary type='text'>WPF 隨手筆記在WPF 裡若有多個來源 (不同的集合或Table...) 想列在一個清單裡, 除了寫程式之外, 有更簡單的方法嗎?答案是使用CompositeCollection 類別.先定義資料來源Window.Resources定義資料來源SuperStarts是一個集合類別, HistoryHeroesData 是一個XML內容 &lt;Window.Resources&gt;           &lt;c:SuperStars x:Key="SuperStartsData"/&gt;         &lt;XmlDataProvider x:Key="HistoryHeroesData" XPath="HistoryHeroes/Hero"&gt;               &lt;x:XData&gt;                   &lt;HistoryHeroes xmlns=""&gt;</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/592524108826383559/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/10/blog-post_31.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/592524108826383559'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/592524108826383559'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/10/blog-post_31.html' title='繫結多個不同的集合'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/_gpyBSv6z2Mg/SQrFpvyWxEI/AAAAAAAAAQc/onuKdqf9BOM/s72-c/1%5B7%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-2279409683351090601</id><published>2008-10-26T13:45:00.000+08:00</published><updated>2008-11-09T14:15:25.974+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ADO.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Studio'/><title type='text'>如何在VS 2008對預存程序偵錯</title><summary type='text'>如果要在VS2008 直接對預存程序偵錯的話,  直接使用伺服器總管用有權限的帳號連到資料庫, 然後開啟該預存程序設定中斷點按右鍵選Step Into即可開始偵錯. 這個很簡單. 可是如果要對ADO.NET 的程式碼一路進行偵錯到預存程序, 那麼就必須要有幾個條件了!!   伺服器總管連到資料庫, 開啟預存程序, 在預存程序設定中斷點.  在程式碼執行預存程序的位置設定中斷點  在專案屬性設定, 啟用SQL Server偵錯         在伺服器總管那個連線上, 設定應用程式偵錯         </summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/2279409683351090601/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/10/vs-2008.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/2279409683351090601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/2279409683351090601'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/10/vs-2008.html' title='如何在VS 2008對預存程序偵錯'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/_gpyBSv6z2Mg/SRZ7gBQhPKI/AAAAAAAAARA/i4Ub7sTkDa4/s72-c/1%5B7%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-132832778484406765</id><published>2008-10-18T16:37:00.001+08:00</published><updated>2008-10-18T16:47:49.459+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='WPF'/><category scheme='http://www.blogger.com/atom/ns#' term='Expression Blend'/><title type='text'>如何控制內容物件的位置及大小</title><summary type='text'>WPF 隨手筆記  Canvas  是一個很像傳統Windows Form設計的容器, 控制項放進去時使用Top, Left決定物件的位置, Width, Height決定物件的大小.     Grid  很像HTML的Table, 可以將控制項放在格子內, 如果將Grid以單格使用, 效果很像Canvas.  不過, Grid是內的控制項可以使用Width, Height, Margin, HorizontalAlignment, VerticalAlignment屬性來決定控制項的位置及大小.     當Width及Height沒有設定或為Auto時(同時HorizontalAlignment, VerticalAlignment屬性不是Stretch時)控制項的大小會依據控制項的內容決定, Ex.Button的Content屬性的大小.     </summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/132832778484406765/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/10/blog-post.html#comment-form' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/132832778484406765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/132832778484406765'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/10/blog-post.html' title='如何控制內容物件的位置及大小'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/huichen.lo/SPmgMzeAnHI/AAAAAAAAAPk/DinufyGzxFY/s72-c/1%5B10%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-4625519217009563222</id><published>2008-08-23T13:38:00.001+08:00</published><updated>2008-08-25T12:11:02.190+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Form'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic'/><title type='text'>VB 的Windows 應用程式程式架構</title><summary type='text'>想要使用VB提供的應用程式架構, 但又想自己控制初始執行表單的順序...  這是上課時同學問的問題.  他的問題細節是這樣的, 要先有一個登入視窗, 通過登入流程之後, 顯示SplashScreen 之後才是MainForm.  過去我們會將這程序寫在Sub Main, 然後專案的"啟動表單"指定成為Sub Main.  但是在Visual Studio的Visual Basic專案, 若要指定Sub Main必須將"啟用應用程式架構"停用, 這代表無法享用Visual Baisc提供的應用程式架構, 這個同學的需求中又需要用到這個架構, 該如何解決這問題呢?  測試了一下, 我的解決方案如下:  Step1.使用 "檢視應用程式事件"     Step2.在ApplicationEvents.vb 覆寫 OnInitialize 方法  Protected Overrides </summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/4625519217009563222/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/08/vb-windows.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/4625519217009563222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/4625519217009563222'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/08/vb-windows.html' title='VB 的Windows 應用程式程式架構'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/huichen.lo/SK-iWIZEOoI/AAAAAAAAAPI/vN4Mk5IG4Vo/s72-c/1%5B14%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-2896615680888185205</id><published>2008-08-15T14:44:00.000+08:00</published><updated>2008-08-19T14:48:50.575+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Studio'/><title type='text'>ASP.NET 3.5 sp1 新增的 Dynamic Data網站</title><summary type='text'>Visual Studio 2008 sp1 在建立ASP.NET 網站的範本中多了"Dynamic Data網站"   又是一個令人 "哇!" 的功能, 簡單來說, 建立網站之後, 他只需要做三個步驟就可以完成網頁資料表的"新刪修"功能.  1. 加入新項目 "Link to SQL 類別"     2.伺服器總管連到Northwind資料庫, 並將必要的資料表拖拉到Link to SQL 類別的設計視窗.     3.接著修改Global.asax的程式碼, 移去下面這行程式的註解, 並修改"YourDataContextType"為第一步驟加入的Link to SQL的類別名稱, 以及設定ScaffoldAllTables 屬性為True即可.  model.RegisterContext(GetType(DataClassesDataContext), _</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/2896615680888185205/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/08/aspnet-35-sp1-dynamic-data.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/2896615680888185205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/2896615680888185205'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/08/aspnet-35-sp1-dynamic-data.html' title='ASP.NET 3.5 sp1 新增的 Dynamic Data網站'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/huichen.lo/SKpr-P2Xw7I/AAAAAAAAAOI/jPPm6Koo_3U/s72-c/1%5B33%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-2684711477596959623</id><published>2008-08-12T12:37:00.000+08:00</published><updated>2008-08-19T12:40:14.493+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='常用工具及下載'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Studio'/><title type='text'>Visual Studio 2008 SP1 開放下載了</title><summary type='text'>Visual Studio 2008 SP1 已經於8/11開放下載了.  http://www.microsoft.com/downloads/details.aspx?displaylang=zh-tw&amp;FamilyID=fbee1648-7106-44a7-9649-6d9f6d58056e  注意事項:     最好先完成作業系統的Windows Update再安裝VS2008 SP1.    如果是Vista 請先關閉"Windows 資訊看板"    若之前曾安裝一些Beta 版的相關軟體, 請先移除.    如果還是裝不起來, 請先閱讀上面Link頁中的ReadMe   </summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/2684711477596959623/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/08/visual-studio-2008-sp1.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/2684711477596959623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/2684711477596959623'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/08/visual-studio-2008-sp1.html' title='Visual Studio 2008 SP1 開放下載了'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-7758687989639542759</id><published>2008-05-31T11:56:00.000+08:00</published><updated>2008-08-26T10:47:35.257+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Form'/><title type='text'>DataGridView - 加入ComboBox 欄位</title><summary type='text'>DataGridView 支援多種欄位控制項, 包含CheckedBox, ComboBox, Image ... 等. 可以被加入DataGridView的欄位物件必須是DataGridViewColumn 類別的延伸類別, .NET 內建DataGridViewComboBoxColumn, 即可呈現ComboBox 的效果. 屬性列表:      DataPropertyName: 繫結到DataGridView 的欄位     DataSource: 下拉內容的資料來源     DisplayMember: 顯示的欄位     ValueMember: 不會顯示的欄位   下面這段範例是說明如何在產品資料表中包含一個分類的下拉選項, DataGridViewComboBoxColumn 必須與Categories 進行資料繫結.           Dim combo As </summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/7758687989639542759/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/05/datagridview-combobox.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/7758687989639542759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/7758687989639542759'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/05/datagridview-combobox.html' title='DataGridView - 加入ComboBox 欄位'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.ggpht.com/huichen.lo/SED4XPU7QMI/AAAAAAAAALc/MUkt_vJkI6E/s72-c/1_thumb.jpg?imgmax=800' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-6118445193732059694</id><published>2008-05-23T17:42:00.001+08:00</published><updated>2008-05-31T16:32:31.700+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Form'/><title type='text'>DataGridView - Row的條件格式化</title><summary type='text'>上一篇是針對儲存格的條件格式化, 這一篇是針對資料記錄, 例如, 檢查庫存量小於10時, 將整筆記錄以紅色顯示.   DataGridView在進行Row的繪制流程時會觸發兩個事件, 分別是RowPrePaint及RowPostPaint, 這裡是要在處理完Row的繪製動作之後, 再將每個儲存格背景色改為紅色, 所以是在RowPostPaint事件處理.  使用e.RowIndex取得DataGridViewRow物件,取出DataGridViewRow物件後, 經由DataBoundItem屬性取得該筆記錄,    然後判斷記錄欄位是否符合條件, 若符合條件, 修改該記錄的每個儲存格Style.BackColor屬性.      Private Sub ProductsDataGridView_RowPostPaint(ByVal sender As Object, ByVal e </summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/6118445193732059694/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/05/datagridview-row.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/6118445193732059694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/6118445193732059694'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/05/datagridview-row.html' title='DataGridView - Row的條件格式化'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/huichen.lo/SDaT6fU7QKI/AAAAAAAAALM/QjO_iprgtQo/s72-c/01_thumb%5B1%5D.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-1140972182407441082</id><published>2008-05-23T16:51:00.001+08:00</published><updated>2008-05-31T16:32:52.293+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Form'/><title type='text'>DataGridView - 儲存格條件格式化</title><summary type='text'>若要在DataGridView中提供儲存格的條件格式化, 例如, 檢查庫存量為零時, 儲存格背景色顯示為紅色.    這代表要對儲存格進行繪製作業, 可以在CellPainting 事件處理.  DataGridViewCellPaintingEventArgs 事件參數,提供ColumnIndex, RowIndex, Value, CellStyle, PaintBackground 等屬性, 可以利用這些屬性是處理引發事件的儲存格.  範例中我使用e.ColumnIndex 找到控制項對應的欄位名稱, 並確定是在進行記錄而不是標題處理(e.RowIndex &gt;0), 才檢查儲存格是否為0. 透過CellStyle的BackColor 改變目前儲存格的背景色.     Private Sub ProductsDataGridView_CellPainting(ByVal sender</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/1140972182407441082/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/05/datagridview_23.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/1140972182407441082'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/1140972182407441082'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/05/datagridview_23.html' title='DataGridView - 儲存格條件格式化'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.ggpht.com/huichen.lo/SDaI1PU7QII/AAAAAAAAAK8/GGaBDmfWvW4/s72-c/01_thumb.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-4793648202036759187</id><published>2008-05-22T16:47:00.001+08:00</published><updated>2008-05-31T16:33:28.395+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Form'/><title type='text'>DataGridView - 執行階段調整欄位順序</title><summary type='text'>若要讓DataGridView 可以在執行階段調整欄位順序倒不是一件難事, 只要設定控制項的AllowUserToOrderColumns 屬性為True即可達到效果. 此屬性預設是False.   圖1: 拖拉QuantityPerUnit欄位     圖2:欄位調整後   </summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/4793648202036759187/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/05/datagridview_22.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/4793648202036759187'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/4793648202036759187'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/05/datagridview_22.html' title='DataGridView - 執行階段調整欄位順序'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/huichen.lo/SDaFB_U7QEI/AAAAAAAAAKc/EADuJXdVrmA/s72-c/01_thumb.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-8643909605959908284</id><published>2008-05-21T16:40:00.001+08:00</published><updated>2008-05-31T16:34:54.111+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Form'/><title type='text'>DataGridView - 凍結欄位與記錄</title><summary type='text'>DataGridView 是.NET Framework 2.0 新增的Windows Form 控制項, 這個控制項提供類似Excel 凍結欄位及記錄的功能.  DataGridViewColumn及DataGridViewRow皆有Frozen 屬性, 只要將這個屬性值設為True就可達到凍結的目的.  處理凍結時通常還會將 "分割線" 設為較粗的線條,  DataGridViewColumn有DividerWidth屬性, DataGridViewRow有DividerHeight屬性, 分別將它們設為大於1的值就會有比較明顯的區隔效果.  例如, 在Form_Load 事件處理凍結效果:  ProductsDataGridView.Columns(1).Frozen = True   ProductsDataGridView.Columns(1).DividerWidth = 3</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/8643909605959908284/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/05/datagridview.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/8643909605959908284'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/8643909605959908284'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/05/datagridview.html' title='DataGridView - 凍結欄位與記錄'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.ggpht.com/huichen.lo/SDaAy_U7QAI/AAAAAAAAAJ8/Wq7XJ65knY4/s72-c/01_thumb.jpg?imgmax=800' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-7054728716078236090</id><published>2008-05-08T00:15:00.001+08:00</published><updated>2008-05-08T00:15:20.813+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Studio'/><title type='text'>Visual Studio 2008的重構功能(1) – for C#</title><summary type='text'>在程式寫完之後，重新審視程式可能會發現程式有很多地方需要最佳化。例如，類別中的公開變數需要封裝、變數名稱不合規範要修改、太多重複出現的程式可以提列為方法…等等。在你的程式碼需要做大手術時，工具有沒有提供重構（Refactor）功能就很重要了。重構功能在Visual Studio 2005的C#編輯器中首次出現，可惜的是Visual Basic編輯器的重構功能只有「重新命名」這一項（Visual Studio 2005及Visual Studio 2008皆是）。這篇文章將介紹重構（Refactor）功能。   什麼是重構? 重構（Reactor）是指在程式完成之後，在不變更外部行為的情況下修改程式碼內部的結構，以達到最佳化程式碼程序的目的。Visual Studio 2008的C#編輯器內含的重構功能包含以下項目：      重新命名: 可以為變數、方法、命名空間、類別名稱…</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/7054728716078236090/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/05/visual-studio-20081-for-c.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/7054728716078236090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/7054728716078236090'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/05/visual-studio-20081-for-c.html' title='Visual Studio 2008的重構功能(1) – for C#'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-3969576282942498631</id><published>2008-05-05T15:26:00.005+08:00</published><updated>2008-05-05T16:19:20.580+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Form'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic'/><title type='text'>Visual Basic 的表單列印功能</title><summary type='text'>應用程式的資料若需要設計可輸出的報表，可以藉由Visual Studio開發工具所附的報表工具（Microsoft Report或Crystal Report）設計可輸出的報表。某些時候，使用者的需求是要將目前執行中的表單狀態輸出，而不是另外製作的報表格式。 對於Visual Basic的開發者來說，直接列印執行中的表單，並不是一件難事。Visual Studio 2008的Visual Basic語言Windows應用程式專案，可以在「工具箱」的「Visual Basic Power Packs」索引頁籤看到PrintForm控制項。控制項的名稱已經直接了當的介紹它的用途。 更多詳細內容, 請參考: http://www.delightpress.com.tw/article_c.aspx?article_id=36</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/3969576282942498631/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/05/visual-basic.html#comment-form' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/3969576282942498631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/3969576282942498631'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/05/visual-basic.html' title='Visual Basic 的表單列印功能'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-5456874929235557086</id><published>2008-05-05T15:07:00.003+08:00</published><updated>2008-05-05T15:15:19.674+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='關於我的新書'/><category scheme='http://www.blogger.com/atom/ns#' term='內容勘誤'/><title type='text'>Visual Basic 2008最佳實務講座內容勘誤-1</title><summary type='text'>感謝讀者Jeffrey 回報書中錯誤, 以下是修正內容:1.第6頁, 第12行   應為Visual Basic 2008, 而不是Visual Basic 20052.第56頁,練習中的Label1屬性應該要設定:  UseMnemonic=&gt;False , ForeColor=&gt;ButtonHighlight, 沒有FontColor屬性(筆誤).3.第67頁, 第7題  答案應為B</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/5456874929235557086/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/05/visual-basic-2008-1.html#comment-form' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/5456874929235557086'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/5456874929235557086'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/05/visual-basic-2008-1.html' title='Visual Basic 2008最佳實務講座內容勘誤-1'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-875616366794693490</id><published>2008-04-03T13:34:00.001+08:00</published><updated>2008-04-03T13:41:45.095+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='常用工具及下載'/><title type='text'>範例資料庫</title><summary type='text'>1.為 Express Edition 安裝範例資料庫 2.Northwind及Pubs範例資料庫的下載位置.  </summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/875616366794693490/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/04/northwindpubs.html#comment-form' title='2 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/875616366794693490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/875616366794693490'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/04/northwindpubs.html' title='範例資料庫'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-4903228611041393698</id><published>2008-03-20T19:11:00.002+08:00</published><updated>2008-06-15T15:26:45.429+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET Framework'/><title type='text'>.NET 可以算出農曆嗎?</title><summary type='text'>答案, 還是Yes!!  .NET Framework (2.0以上)的類別庫中有一個TaiwanLunisolarCalendar 類別(參考: http://msdn2.microsoft.com/zh-tw/library/system.globalization.taiwanlunisolarcalendar.aspx)  這個類別的可看性就多囉!   它與一般的西曆及國曆是很不一樣的, 尤其可能有閏月. 要顯示完整的年月日, 至少要用到以下幾個方法:     GetSexagenaryYear     GetCelestialStem     GetTerrestrialBranch     GetMonth     GetLeapMonth     GetDayOfMonth    下列程式是完整的範例:          Dim cal As New </summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/4903228611041393698/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/03/net_20.html#comment-form' title='3 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/4903228611041393698'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/4903228611041393698'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/03/net_20.html' title='.NET 可以算出農曆嗎?'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-7929741820910744349</id><published>2008-03-19T16:42:00.007+08:00</published><updated>2008-06-15T15:27:25.138+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='.NET Framework'/><title type='text'>.NET 會算中華民國曆嗎?</title><summary type='text'>答案是: Yes!!.NET Framework (2.0以上)的類別庫中有一個 TaiwanCalendar (參考http://msdn2.microsoft.com/zh-tw/library/system.globalization.taiwancalendar.aspx)不過, 台灣曆法與西曆只有差在紀元的計算, 例如, 西曆的2008年3月18日, 等於中華民國年的97年3月18日.比較常用的會是它的GetYear方法, 如以下範例:Dim cal As New TaiwanCalendarDim twYear As Integer = cal.GetYear(Date.Now) MessageBox.Show("現在是中華民國:" &amp; twYear &amp; "年")如果想直接讓應用程式使用中華民國曆法, 可以這樣寫:Dim twCI As New CultureInfo("</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/7929741820910744349/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/03/net.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/7929741820910744349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/7929741820910744349'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/03/net.html' title='.NET 會算中華民國曆嗎?'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-7812416802666284213</id><published>2008-03-18T23:35:00.000+08:00</published><updated>2008-03-20T10:33:17.343+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='關於我的新書'/><category scheme='http://www.blogger.com/atom/ns#' term='童言童語'/><title type='text'>書上架了!!</title><summary type='text'>Visual Studio 2008 系列書終於上架囉!!   媽咪說只要讀完這些書我就是.net神童了!     要從哪一本書開始呢?      </summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/7812416802666284213/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/03/blog-post_18.html#comment-form' title='7 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/7812416802666284213'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/7812416802666284213'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/03/blog-post_18.html' title='書上架了!!'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-7473510066868581158</id><published>2008-03-13T16:08:00.002+08:00</published><updated>2008-03-13T16:15:20.602+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='關於我的新書'/><title type='text'>3/18 確定會上架</title><summary type='text'>出版社今天確定3/18會上架.</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/7473510066868581158/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/03/318.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/7473510066868581158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/7473510066868581158'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/03/318.html' title='3/18 確定會上架'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-943232973589968712</id><published>2008-03-11T18:15:00.005+08:00</published><updated>2008-03-11T18:55:50.111+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='關於我的新書'/><title type='text'>書的封面來了</title><summary type='text'>書的封面終於出來了, 隨著書封面的遲到, 原本預計3/14出廠的書(內文早就進廠了)也將可能延遲到3/19才上架 (整個書系皆是).唉~ 本來很期待這星期就可以拿到的 :&lt; 已經預購的朋友們, 我們一起耐心等待吧!</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/943232973589968712/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/03/blog-post_221.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/943232973589968712'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/943232973589968712'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/03/blog-post_221.html' title='書的封面來了'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_gpyBSv6z2Mg/R9Zb4uNiOJI/AAAAAAAAAH0/pFVRIBVatYc/s72-c/VB+08%E5%B0%81.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-531944983904774944</id><published>2008-03-09T16:56:00.001+08:00</published><updated>2008-03-09T17:13:47.879+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='關於我的新書'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic'/><title type='text'>Refactor! for Visual Basic 2008 的安裝說明</title><summary type='text'>這本書的前一版(Visual Studio 2005 完全探索)有提到關於Refactor!的用法, 在[Visual Studio 2008最佳實務講座]已經完全移除. 並不是Visual Studio 2008的VB不支援, 而是書中新增太多VB重要而且必須講的內容. 在書本厚度(成本)等壓力下, Refactor!部份決定移除了. 作者將於此Blog陸續補上相關的應用及說明.   安裝需求     必須安裝Visual Studio 2008。   步驟1-下載     開啟IE，連接到http://msdn2.microsoft.com/zh-tw/vbasic/bb693327(en-us).aspx。              如圖點選Download now下載.      (網頁會轉到另一個Page, 點選[ Download Your Copy Now &gt;&gt;]即可.)</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/531944983904774944/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/03/refactor-for-visual-basic-2008.html#comment-form' title='3 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/531944983904774944'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/531944983904774944'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/03/refactor-for-visual-basic-2008.html' title='Refactor! for Visual Basic 2008 的安裝說明'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-6067375717327551741</id><published>2008-03-07T01:17:00.009+08:00</published><updated>2008-03-08T17:13:34.056+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='關於我的新書'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic'/><title type='text'>Visual Basic的重構(Refactor)</title><summary type='text'>這張圖是C#編輯器提供的Refactor功能.可惜的是Visual Studio 2008的Visual Basic編輯器並沒提供Refactor的功能.如果要說有, [重新命名]勉強算是. 其他的如"擷取方法", "封裝欄位", "擷取介面", "將區域變數提升至參數", "移除參數", "重新排列參數"...等這些項目在Visual Basic編輯器是了無蹤影.Visual Basic的開發人員若想要享用Refactor的功能, 必須另外加裝Refactor! for Visual Basic 2008 .下載及相關說明可以從http://msdn2.microsoft.com/en-us/vbasic/bb693327.aspx獲得.</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/6067375717327551741/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/03/visual-basicrefactor.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/6067375717327551741'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/6067375717327551741'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/03/visual-basicrefactor.html' title='Visual Basic的重構(Refactor)'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_gpyBSv6z2Mg/R9FiZ-NiN1I/AAAAAAAAAFA/r0wP2IyXitU/s72-c/C%23Refactor.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-2540915555246506722</id><published>2008-03-06T22:02:00.015+08:00</published><updated>2008-03-09T00:00:36.856+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic'/><title type='text'>Visual Basic 2008 上市了</title><summary type='text'>Visual Basic 2008上市了，新增哪些功能?   安啦~ 肯定與Visual Basic 2005一樣，新增最大的功能就是讓人印象最深刻的「My」，「My」對於老Visual Basic來說真是親切無比，那些從Visual Basic 6到.NET之後找不到的功能，幾乎都可以在「My」裡面重見…。Visual Basic 2008是不是新增了個「I」，變的更加親切了呢?!     如果你抱著這樣的心態來看Visual Basic 2008，那就錯囉! 雖然這次的更新不像Visual Basic語言進入.NET世界當時發生那麼大的變革(Visual Basic 7新增物件導向的功能，弄的老Visual Basic們幾乎要重新學習! )，卻也會讓老Visual Basic們驚豔及花上一番功夫來學習它。     哪麼Visual Basic 2008到底新增什麼嚇人的功能呢?</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/2540915555246506722/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/03/visual-basic-2008.html#comment-form' title='5 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/2540915555246506722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/2540915555246506722'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/03/visual-basic-2008.html' title='Visual Basic 2008 上市了'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-6935150928547422209</id><published>2008-03-05T20:41:00.005+08:00</published><updated>2008-03-08T16:44:50.964+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='關於我的新書'/><title type='text'>開始預購囉~</title><summary type='text'>哇~ 預購79折吔! 要買要快!!http://www.delightpress.com.tw/book.aspx?book_id=SKUP00003http://www.delightpress.com.tw/act_vs2008.html 先睹為快另外還有其他四本好書也別漏了唷!http://www.delightpress.com.tw/book.aspx?book_id=SKUP000037</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/6935150928547422209/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/03/blog-post_05.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/6935150928547422209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/6935150928547422209'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/03/blog-post_05.html' title='開始預購囉~'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_gpyBSv6z2Mg/R8-q1co1gDI/AAAAAAAAACM/IWhrYKkrUY8/s72-c/forAnita.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-593239161237696552</id><published>2008-03-04T19:10:00.002+08:00</published><updated>2008-03-09T00:51:40.469+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='關於我的新書'/><title type='text'>新書上市預告</title><summary type='text'> Visual Studio 2008即將於今年的四月上市發表(其實已經在2008年元月可以下載到中文試用版)書也如預期的在二月中旬完成.這本書主要的對象是針對想進入.NET程式開發世界的朋友們而寫的. 帶領讀者從最初淺的Visual Basic 語法到視窗應用程式的開發, 物件導向, 集合, 泛型以及Visual Basic 9最新的查詢運算式, 使用淺顯易懂的範例, 期望.NET的初學者能輕鬆的學會Visual Basic 2008.書共分為三大部份，第一篇著重在語言基礎觀念的建立、第二篇著重在視窗的應用、第三篇則是從物件導向的角度探索Visual Basic 2008的語言世界。每個章節中設計了許多範例與實作，並於實作中設計重要觀念的問答題，期望讀者能藉此深入了解Visual Basic 2008以及工具Visual Studio 2008+的使用，進而學會使用Visual </summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/593239161237696552/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/03/blog-post.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/593239161237696552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/593239161237696552'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/03/blog-post.html' title='新書上市預告'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_gpyBSv6z2Mg/R80zlkkLooI/AAAAAAAAABI/7A2BQGq2rBw/s72-c/skup00003_vb.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-1112629684026780144</id><published>2008-01-25T00:27:00.004+08:00</published><updated>2008-03-11T00:46:23.655+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='童言童語'/><title type='text'>隨音樂起舞</title><summary type='text'>保母有天帶小寶進一家店, 店中正放熱門音樂, 小寶竟隨音樂起舞. 今早試試... 哈, 真的吔! 太可愛了!! 過年時帶去街頭賣藝好了...哈~ 哈~ 




啊! 一早人家還沒開嗓...:p</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/1112629684026780144/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/03/blog-post_11.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/1112629684026780144'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/1112629684026780144'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/03/blog-post_11.html' title='隨音樂起舞'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-3120555126754176660</id><published>2007-12-28T00:18:00.000+08:00</published><updated>2008-03-09T00:19:14.747+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Form'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic'/><title type='text'>Window Forms的資料繫結元件</title><summary type='text'>Visual Studio(2005以後的版本)在視窗應用程式的資料繫結功能上提供一個非常便利的工具，透過這個工具，開發人員可以很快的建立資料存取的表單（只需一個拖拉的動作）。許多朋友看到這功能通常的反應是「口圭!」，想一想之後又會接著提出下一個疑問：「都做好了，如果想要手動自行設計或修改，反而不知怎麼做？」。     其實工具是將所有必要的元件及操作步驟綁成一個動作完成，以便需要簡易功能的開發人員快速完成設計。本篇文章將介紹Windows Form資料繫結的元件，讓您了解如何修改或者自行建立表單。     這裡先簡單介紹資料繫結工具的使用，只要以下幾個步驟：   1.「資料」選單選取「加入資料來源」。   2. 使用「加入資料來源」連接到資料來源及存取的資料表。畫面如圖1。   3.在「資料來源」視窗選取要在表單顯示的欄位或資料表，然後拖拉到表單上即可。畫面如圖2。</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/3120555126754176660/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/03/window-forms.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/3120555126754176660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/3120555126754176660'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/03/window-forms.html' title='Window Forms的資料繫結元件'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_gpyBSv6z2Mg/R9JBu-NiN2I/AAAAAAAAAFI/2n6y5QdotYs/s72-c/1.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-2818287314185297447</id><published>2007-12-11T00:37:00.001+08:00</published><updated>2008-03-09T00:43:11.979+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ADO.NET'/><title type='text'>ADO.NET 2.0資料提供者</title><summary type='text'>ADO.NET支援多種資料來源類型的存取功能。在它的架構圖中，開發人員可以由資料來源而決定使用何種.NET資料提供者（.NET Data Provider）。不過當程式需要開發某些資料庫工具時，可能需要讓使用者決定資料提供者，那麼開發人員就不能直接在程式中寫死使用某種提供者（例如：SqlClient或OleDb…等）。本文將介紹ADO.NET資料提供者的一個重要類別 – DbProviderFactory。       圖是ADO.NET之.NET 資料提供者架構圖，開發人員依據資料來源決定使用何種資料提供者。例如，SQL Server 7.0以上版本的資料來源使用System.Data.SqlClient命名空間下的類別。程式碼列表1，是使用SQL Server .NET Data Provider連到本機的Northwind資料庫存取產品資料表。 Visual Basic   Dim</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/2818287314185297447/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2007/12/adonet-20.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/2818287314185297447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/2818287314185297447'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2007/12/adonet-20.html' title='ADO.NET 2.0資料提供者'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1092918726284349136.post-2585142238453553395</id><published>2007-12-01T00:19:00.000+08:00</published><updated>2008-03-09T00:20:20.733+08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Form'/><category scheme='http://www.blogger.com/atom/ns#' term='Visual Basic'/><title type='text'>Windows Form 2.0文字方塊的自動完成</title><summary type='text'>使用過Internet Explorer的人對於自動完成這項功能應該不陌生，它可以協助使用者快速輸入以前曾經輸入的內容，例如：地址欄位，曾經在某網站輸入過，下次再輸入地址欄位類似資料時，文字方塊會自動完成或是出現下拉清單讓使用者選擇，這就是自動完成功能。    這是在網頁上呈現的功能，過去曾有人問過「自動完成在Windows Form上是否可行」？答案在.NET Framework 1.x上沒有內建此項功能，必須由開發者自行開發。在.NET Framework 2.0已經內建此項功能，本篇文章將介紹.NET Framework 2.0中Windows Forms文字方塊的自動完成。    自動完成的屬性  Windows Forms .NET 2.0的TextBox、ComboBox…等文字方塊類控制項支援自動完成屬性，透過這些屬性的指定，可以指定自動完成的模式、資料來源，支援檔案系統（</summary><link rel='replies' type='application/atom+xml' href='http://anita-lo.blogspot.com/feeds/2585142238453553395/comments/default' title='張貼意見'/><link rel='replies' type='text/html' href='http://anita-lo.blogspot.com/2008/03/windows-form-20.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/2585142238453553395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1092918726284349136/posts/default/2585142238453553395'/><link rel='alternate' type='text/html' href='http://anita-lo.blogspot.com/2008/03/windows-form-20.html' title='Windows Form 2.0文字方塊的自動完成'/><author><name>Anita</name><uri>http://www.blogger.com/profile/03302810767777768616</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://bp0.blogger.com/_gpyBSv6z2Mg/R9Ai2co1gGI/AAAAAAAAACs/gD5iz-EhmzU/S220/%E7%BE%85%E6%85%A7%E7%9C%9F-90-10-30_1.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_gpyBSv6z2Mg/R9JPeeNiN4I/AAAAAAAAAFY/UVVkkU4z7oo/s72-c/1.JPG' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
