What are some of the methods that you can use with the SelectionStart and SelectionEnd properties of MonthCalendar to calculate new dates? For example, if you wanted to calculate the date of an event that will occur 10 days from the SelectionStart date, what MonthCalendar method could you use?

What will be an ideal response?


You can use several useful methods with the SelectionStart and SelectionEnd properties of MonthCalendar to calculate new dates, including the following:
* AddDays(), which takes a double argument and adds a specified number of days to the date
* AddMonths(), which takes an int argument and adds a specified number of months to the date
* AddYears(), which takes an int argument and adds a specified number of years to the date
Many business and financial applications use AddDays(), AddMonths(), and AddYears() to calculate dates for events, such as payment for a bill. To calculate the date of an event that should occur 10 days from the SelectionStart date, you could use the AddDays() method as in: myMonthCalendar.SelectionStart.AddDays(10).

Computer Science & Information Technology

You might also like to view...

A character set that is the American national standard is

a. ASCII b. EBCDIC c. Baudot d. Morse

Computer Science & Information Technology

What utility allows you to visually display the data generated by counters, and allows you to select the individual counters you want to view?

A. Performance Monitor B. Disk Monitor C. Resource Monitor D. Network Monitor

Computer Science & Information Technology

____ offers certification in the NetWare network operating system.

A. Microsoft B. Cisco C. Google D. Novell

Computer Science & Information Technology

The Do Not Call Registry applies to what type of marketing?

A. Email marketing B. Unsolicited commercial messages C. Telemarketing D. Online marketing

Computer Science & Information Technology