カレンダーコントロールの基本的な操作方法について解説します。

Imports GrapeCity.Web.Input.IMCalendar GcCalendar1.ShowNavigator = CalendarNavigators.ScrollBar GcCalendar1.NavigatorOrientation = NavigatorOrientation.Bottom GcCalendar1.ShowScrollTip = True GcCalendar1.ScrollTipAlign = ScrollTipAlignment.BottomRight
using GrapeCity.Web.Input.IMCalendar; GcCalendar1.ShowNavigator = CalendarNavigators.ScrollBar; GcCalendar1.NavigatorOrientation = NavigatorOrientation.Bottom; GcCalendar1.ShowScrollTip = true; GcCalendar1.ScrollTipAlign = ScrollTipAlignment.BottomRight;


Imports GrapeCity.Web.Input.IMCalendar GcCalendar1.CalendarType = CalendarType.YearMonth GcCalendar1.YearMonthFormat.YearFormat = "ggg e年" GcCalendar1.YearMonthFormat.MonthFormat = "MM月"
using GrapeCity.Web.Input.IMCalendar; GcCalendar1.CalendarType = CalendarType.YearMonth; GcCalendar1.YearMonthFormat.YearFormat = "ggg e年"; GcCalendar1.YearMonthFormat.MonthFormat = "MM月";
| キー | 説明 |
|---|---|
| [←] | フォーカスが前の日に戻ります。 |
| [→] | フォーカスが次の日に進みます。 |
| [↑] | フォーカスが1週間前に戻ります。 |
| [↓] | フォーカスが1週間先に進みます。 |
| [Home] | フォーカスがその週の最初の日に戻ります。 |
| [End] | フォーカスがその週の最後の日に進みます。 |
| [Ctrl]+[Home] | フォーカスが表示されている月の最初の日に戻ります。 |
| [Ctrl]+[End] | フォーカスが表示されている月の最後の日に進みます。 |
| [PageUp] | フォーカスが1か月前に戻ります。 |
| [PageDown] | フォーカスが1か月先に進みます。 |
| [Ctrl]+[PageUp] | フォーカスが1年前に戻ります。 |
| [Ctrl]+[PageDown] | フォーカスが1年先に進みます。 |
| [Space]または[Enter] | 日付を選択します。 |