This is a demo WinForms application for the CronExpressionControl component.
- Interactive UI: Test all features of the Cron Expression Generator control
- Real-time Updates: See the cron expression and description update as you configure settings
- Copy to Clipboard: Easily copy the generated expression
- Expression Testing: View detailed breakdown of the expression fields
- Reset: Clear the expression back to default values
- Set
SGU_Tools_CronExpressionBuilder.Demoas the startup project - Press F5 or click Run in Visual Studio
- The demo application window will open
Navigate through the six tabs to configure different parts of the cron expression:
- Seconds: Configure second-level scheduling (0-59)
- Minutes: Configure minute-level scheduling (0-59)
- Hours: Configure hour-level scheduling (0-23)
- Day: Configure day scheduling with advanced options:
- Day of week or day of month
- Last day, last weekday, nth occurrence
- Nearest weekday, days before end of month
- Month: Configure month scheduling (JAN-DEC)
- Year: Configure year scheduling
- Cron Expression: Shows the generated Quartz 7-field cron expression
- Description: Human-readable explanation of when the expression will execute
- Clear: Resets the expression to default values (0 0 0 ? * * *)
- Copy Expression: Copies the cron expression to the clipboard
- Test Expression: Shows a detailed breakdown of all fields and validation status
- Go to Seconds tab ? Select "Every second" (default is "0")
- Go to Minutes tab ? Select "Every minute" (default is "0")
- Go to Hours tab ? Select "Every hour" (default is "0")
- Go to Day tab ? Select "Every day"
- Result:
0 0 0 ? * * *
- Seconds:
0 - Minutes:
0 - Hours: Select "Specific hour" ? Check
09 - Day: Select "Specific day of the week" ? Check Monday-Friday
- Result:
0 0 9 ? * 2,3,4,5,6 *
- Seconds:
0 - Minutes:
0 - Hours: Select "Specific hour" ? Check
12 - Day: Select "On the" ? Choose "1st" ? "Monday" ? "of the month"
- Result:
0 0 12 ? * 2#1 *
Use this application to test:
- ? All tab configurations
- ? Expression building accuracy
- ? Description generation
- ? UI responsiveness
- ? Edge cases (last day, nth occurrence, etc.)
- ? Copy/paste functionality
- ? Expression validation
- The control generates Quartz 7-field cron expressions by default
- The format is:
second minute hour dayOfMonth month dayOfWeek year - Special characters supported:
* ? - , / L W # - Day fields use
?to indicate "no specific value"
