2013年3月5日 星期二

OS_to enable thumbnail view for your images


Are your image files showing up with a generic mountain and lake scene (for every picture) as shown below, instead of the miniature / thumbnail display? Here is how to enable Windows to generate and display thumbnail icon for your image files.


To enable thumbnail view for your images, first open the folder in question. In theViews drop-down in the Task pane, select one of the following views:
  • Medium Icons
  • Large Icons
  • Extra Large Icons
If thumbnail previews are not generated, then open Folder Options applet via Control Panel or from Start – Search box (by running the command "control folders"). In the View tab of Folder Options, uncheck the following option:
Always show icons, never thumbnails
























Click OK.


reference :http://www.winhelponline.com/blog/fix-thumbnail-preview-for-pictures-w7-vista/ 

2009年2月4日 星期三

GridView RowCommand 取得點選GridView項目 的Index

protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)


{
if (e.CommandName == "editData")


{ GridViewRow gvrow = (GridViewRow) (((ImageButton)e.CommandSource).NamingContainer);


int index = gvrow.RowIndex;


GridView1.Rows[index.ToString()].BackColor = Color.Silver;


ViewState["nrd_iden"] = e.CommandArgument.ToString();


QueryRowData();





}


}

程式碼中 (ImageButton) 為點選的控制項型態 (如下圖紅框 為ImageButton)




2008年4月14日 星期一

2008年3月19日 星期三

C_程式中若有unsafe程式碼,編譯時必須使用/unsafe選項

【問題】建置專案時,用debug可以 ,換成 release 確出現『程式中若有unsafe程式碼,編譯時比須使用/unsafe選項』 錯誤訊息

【解法】

看專案屬性的建置,勾選允許 unsafe 程式碼,這樣就可以在程式碼中使用指標。
但除非程式碼一定要用指標,否則最好不要允許 unsafe 程式碼。

 

111

 

20080320_MH

2008年3月7日 星期五

開張

學習筆記 開張

● 技術文件
→ SQL_
→ C_
→ JS_
→ CSS_
→ HTML_
→ sense_

●閱讀心得分享
→ BOOK_