Move form with Label

2 posts, 0 answers
  1. mohammad
    mohammad avatar
    1 posts
    Member since:
    Nov 2016

    Posted 11 Jun 2017 Link to this post


    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?


  2. Dimitar
    Dimitar avatar
    2105 posts

    Posted 12 Jun 2017 Link to this post

    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.

    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.
Back to Top