24h購物| | PChome| 登入
2008-04-10 09:09:45| 人氣103| 回應0 | 上一篇 | 下一篇

datetimepicker 練習

推薦 0 收藏 0 轉貼0 訂閱站台

Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
Select Case ListBox1.SelectedItem.ToString
Case ”Long”
DateTimePicker1.Format = DateTimePickerFormat.Long
Case ”Short”
DateTimePicker1.Format = DateTimePickerFormat.Short
Case ”Time”
DateTimePicker1.Format = DateTimePickerFormat.Time
Case ”Custom”
DateTimePicker1.Format = DateTimePickerFormat.Custom
End Select

End Sub

Private Sub DateTimePicker1_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DateTimePicker1.ValueChanged
Label2.Text = DateTimePicker1.Value.ToString
End Sub

台長: ,,飛ㄦ*
人氣(103) | 回應(0)| 推薦 (0)| 收藏 (0)| 轉寄
全站分類: 不分類 | 個人分類: 程式設計篇 |
此分類下一篇:progressbar練習
此分類上一篇:新增項目練習

是 (若未登入"個人新聞台帳號"則看不到回覆唷!)
* 請輸入識別碼:
請輸入圖片中算式的結果(可能為0) 
(有*為必填)
TOP
詳全文