O
Oliver Gräser
Hello again,
I hope I don't start stepping on someone's nerves by asking these
question, but it really seems I'm too stupid for this...
I created an customized appointment item of which I only want to use my
P. 2. To imitate the start / end menu of the standard appointment page,
I put a DTPicker control on my page and assigned the start/end values to
this control - works fine, once I inserted the item_open function that
initializes the controls (Thanks to the outlookcode.com team)
Now, I thought it'd be much nicer if the controls were really the same
way as in the original appointment page 1. That is, one control for the
day and one for the time. So I put 2 DTP for each start/end value on the
form. I use the dtpcustom format for all and assign ddd, dd:MM:yy to
one and hh:mm to the other. Fine so far. The only bad thing is that if I
really open one such form, changing the date in the first control really
changes the date, but changing the time in the second control has no
effect at all.
I suppose I can work around this by writing a function that extracts the
time from on control, the date from the other, creates a date object
from those, and assignes this to .Start and .End. But this would be such
a messy way, and I'm sure this problem must apply to many persons -
anyone got any hints?
Thanks,
Oliver
I hope I don't start stepping on someone's nerves by asking these
question, but it really seems I'm too stupid for this...
I created an customized appointment item of which I only want to use my
P. 2. To imitate the start / end menu of the standard appointment page,
I put a DTPicker control on my page and assigned the start/end values to
this control - works fine, once I inserted the item_open function that
initializes the controls (Thanks to the outlookcode.com team)
Now, I thought it'd be much nicer if the controls were really the same
way as in the original appointment page 1. That is, one control for the
day and one for the time. So I put 2 DTP for each start/end value on the
form. I use the dtpcustom format for all and assign ddd, dd:MM:yy to
one and hh:mm to the other. Fine so far. The only bad thing is that if I
really open one such form, changing the date in the first control really
changes the date, but changing the time in the second control has no
effect at all.
I suppose I can work around this by writing a function that extracts the
time from on control, the date from the other, creates a date object
from those, and assignes this to .Start and .End. But this would be such
a messy way, and I'm sure this problem must apply to many persons -
anyone got any hints?
Thanks,
Oliver