26三月/080
VB.NET中Boolean的轉型
當 Visual Basic 將數字資料型別轉換成 Boolean 時,0 會變成 False,而其他所有值都會變成 True。
當 Visual Basic 將 Boolean 值轉換成數字型別時,False 會變成 0,而 True 會變成 -1。
21二月/080
My.Computer.FileSystem.SpecialDirectories
注意:此物件下附屬的所有屬性(傳回特殊目錄) 目錄路徑都是 沒有「\」號結尾的
如 My.Computer.FileSystem.SpecialDirectories.Temp
則傳回C:\Documents and Settings\chrischen.ANPS\Local Settings\Temp
若要後接檔名時要自行加上,否則路徑會有錯
21二月/080
System.Windows.Forms.ComboBox事件順序
- 進入控制項
- Enter
- GotFocus
- 離開控制項
- LostFocus
- Leave
- Validating
- Validated
- 下拉選單
- DropDown(按下)
- DropDownClosed(離開)
- 下拉選單展開,用滑鼠選擇另一個項目
- DropDown
- SelectionChangeCommitted
- DropDownClosed
- SelectedValueChanged
- SelectedIndexChanged
- 下拉選單沒有展開時,用箭頭選擇項目
- SelectionChangeCommitted
- SelectedValueChanged
- SelectedIndexChanged
- 下拉選單展開時,用箭頭選擇項目,並按下enter送出結果
- DropDown
- SelectedValueChanged
- SelectedIndexChanged
- SelectionChangeCommitted
- DropDownClosed
- 編輯顯示的文字(Style為DropDown時)
- TextUpdate
- TextChanged
21二月/080
System.IO.FileInfo小測試
dim f as new fileinfo("D:\123.xls")
FullName屬性傳回 D:\123.xls (完整路徑)
Name屬性傳回 123.xls (檔案名稱含副檔名)
Extension屬性傳回 .xls (注意前面有加「.」)