Re: vb 6 MonthView control
- From: "MikeD" <nobody@xxxxxxxxxxx>
- Date: Tue, 29 May 2007 17:08:46 -0400
"WB" <none> wrote in message news:uf0cqaioHHA.5008@xxxxxxxxxxxxxxxxxxxxxxx
I am trying to implement the monthview control and am having difficulty
with
the months that are displaying when the form loads the control.
I want one column with three months. So if I were loading it today the
months would be May, June, July. The scrollrate is set at zero. If I
change my system date to June, May is still the first month that shows.
It
isn't until I set my system date to August that May no longer appears.
I always want the current month to be the top(first) month. Is this
possible?
It doesn't look like there's any property that lets you specify this and I
didn't see any API message you could possibily send. The Monthview appears
to be "smart" in that if the date assigned to Value is within the range of
displayed months, it doesn't change the view. You can force it by
inititally setting a date way in the future and then setting the desired
date. For example:
Private Sub Form_Load()
MonthView1.Value = DateSerial(2100, 12, 31)
MonthView1.Value = Date
End Sub
I just picked the year 12/31/2100 arbitrarily. I'm guessing your program
won't be in use by that date. <g> Of course, if you've set the MaxDate to
something earlier than this 12/31/2100, be sure to change one of them.
--
Mike
Microsoft Visual Basic MVP
.
- Follow-Ups:
- Re: vb 6 MonthView control
- From: WB
- Re: vb 6 MonthView control
- References:
- vb 6 MonthView control
- From: WB
- vb 6 MonthView control
- Prev by Date: vb 6 MonthView control
- Next by Date: Re: Label/Sharps' tooltips do not appears on right Screen (Dual Screen
- Previous by thread: vb 6 MonthView control
- Next by thread: Re: vb 6 MonthView control
- Index(es):
Relevant Pages
|