This is a migrated thread and some comments may be shown as answers.
TimePicker: Disable resize option and/or set MinSize
1 Answer 23 Views
This is a migrated thread and some comments may be shown as answers.
Johannes
Top achievements
Rank 1
Johannes asked on 11 Apr 2013, 12:39 PM
How can I disable the resize option on a TimePicker Popup?

How can I set the MinimumSize for the Popup so the user cannot change the Size of my TimePicker control at all?
// This code does not work; user can still change the size of the TimePicker-Popup
TimePickerElement.PopupContentElement.MinSize = new Size(300, 350);
TimePickerElement.PopupForm.MinimumSize = new Size(300, 350);

1 Answer, 1 is accepted

Sort by
0
Accepted
Paul
Telerik team
answered on 16 Apr 2013, 08:21 AM
Hello Johannes,

Thank you for writing.

The best way to disallow the resize of the popup menu is to use the following code snippet:
this.radTimePicker1.TimePickerElement.PopupForm.SizingMode = SizingMode.None;

Later if you want to control the size of the popup window you may use different properties, one of which is:
int width = 500;
int height = 500;
Nikolay Aleksiev
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Asked by
Johannes
Top achievements
Rank 1
Answers by
Paul
Telerik team
Share this question
or