I am using dateTimePicker control of .Net framework 4.0 using C# and want it to behave a bit differently than its default behavior. After clicking on the calendar button, in default behavior calendar is shown in the bottom of the control. I want to modify it so that the calendar appears on top of the dateTimePicker control in windows forms application.
Any suggestion?
If you are using DateTimePicker
class from System.Windows.Forms
then you will find four properties named Right
, Left
, Top
, Bottom
. Using this properties you can set the distance of your calender control in pixels from the corresponding margin of your container's client area. You can also set the Width
property.
For more about the properties, check this - link
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.