This is a migrated thread and some comments may be shown as answers.

Move form with Label

1 Answer 57 Views
Form
This is a migrated thread and some comments may be shown as answers.
mohammad
Top achievements
Rank 1
mohammad asked on 11 Jun 2017, 10:34 AM

Hi

I used a rad shaped form in my app, and then removed the title bar. but still I'm able to move form (which is totally great; since I don't have to reproduce form movement by mouse events). then I add a label to top of the form to show the 'subject'. when user click and hold to mouse button to move the form, if the label is clicked, form won't move, but if other parts of form get clicked, form will move. my question is How I can set the label button mousedown event (or any other event) to be able to move the form?

Thanks

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 12 Jun 2017, 06:44 AM
Hello Mohammad,

The easiest way to achieve this is to add RadTitlebar to the form and hide the buttons:
this.radTitleBar1.TitleBarElement.CloseButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
this.radTitleBar1.TitleBarElement.MaximizeButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
this.radTitleBar1.TitleBarElement.MinimizeButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Form
Asked by
mohammad
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or