Make user control display outside of form boundry

后端 未结 5 1838
慢半拍i
慢半拍i 2020-12-24 09:46

I\'ve decided to reimplement the datetime picker, as a standard datetime picker isn\'t nullable. The user wants to start with a blank field and type (not select) the date.

5条回答
  •  有刺的猬
    2020-12-24 10:45

    I'm not 100% sure, but a quick look at the DateTimePicker class on Reflector takes me to the SafeNativeMethods.SetWindowPos internal class.

    You can override the SetBoundsCore from the base Control class or, like Tigraine stated, create a custom control based on the DateTimePicker.

    Hope it helps, Bruno Figueiredo

提交回复
热议问题