Autor Beitrag
freak4fun
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 604
Erhaltene Danke: 4

Win 7 Pro
VS 2013 Express, Delphi, C#, PHP, Java
BeitragVerfasst: Di 24.06.14 20:53 
Hallo Leute,

ich suche eine benutzerfreundliche Möglichkeit Datum und Uhrzeit anzugeben. Das Datum soll normal wählbar sein und die Uhrzeit auf eine halbe Stunde genau sein.

Folgende Möglichkeiten:

* 1 Datetimepicker (Format: dd.MM.yyyy HH:mm)
* 2 Datetimepicker (Format 1: dd.MM.yyy Format 2: HH:mm)
* 1 Datetimepicker + Masktextbox (__:__)
* 1 Datetimepicker + 2 Numericupdown (Stunde, Minuten)

Ich wei nicht was ich nehmen soll, vor allem wegen dem auf halbe Stunde genau.

_________________
"Ich werde auf GAR KEINEN Fall…!" - "Keks?" - "Okay, ich tu's."
i++; // zaehler i um 1 erhoehen
Yankyy02
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 138
Erhaltene Danke: 21

Win 11 x64
C# (VS 2022 - Rider)
BeitragVerfasst: Di 24.06.14 21:08 
Hallo freak4fun,
wenn du wpf einsetzt kannst du dir mal den DateTimePicker vom WPFToolkit anschauen das scheint genau das zu sein was du suchst!
wpftoolkit.codeplex....;referringTitle=Home
MfG

_________________
the quiter you become, the more you are able to hear

Für diesen Beitrag haben gedankt: freak4fun
freak4fun Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 604
Erhaltene Danke: 4

Win 7 Pro
VS 2013 Express, Delphi, C#, PHP, Java
BeitragVerfasst: Mi 25.06.14 20:14 
Hallo Yankyy02,

ich nutze kein WPF, aber dein Link hat mich auf eine Idee gebracht.

Ich benutze nun einen DateTimePicker mit dem Format "dd.mm.yyyy" und eine Combobox mit DropDownList gefüllt mit "00:00, 00:30, 01:00 ...". Das entspricht dem, was ich wollte. :zustimm:

_________________
"Ich werde auf GAR KEINEN Fall…!" - "Keks?" - "Okay, ich tu's."
i++; // zaehler i um 1 erhoehen