# Bunifu Drag

The Bunifu Drag component, like the [Bunifu Form Dock](https://docs2.bunifuframework.com/docs/ui/components/bunifu-form-dock) component, allows us to easily move our Forms from one area of the screen to another. However, the unique feature in this component is the ability to also **drag controls** at runtime once they're targeted. We shall however look at this a bit later...

Here are some illustrations of this component in action:

![](https://downloads.intercomcdn.com/i/o/98934974/3ee3888add3ca3f1c652749d/user-form-panel-dragging.gif)

Above, a custom borderless Form with a Panel as the Title Bar is being used to drag the Form.

![](https://downloads.intercomcdn.com/i/o/98934991/9c27924532452e7bbc087fcb/sample-draggable-button.gif)

Above, a button that was set as the `TargetControl` at design-time is now draggable at runtime.

To use drag simply locate it in your your toolbox and drag it to your form:

![](https://downloads.intercomcdn.com/i/o/73331235/1b3b609ad10e88ed925b1420/1-24\[1].png)

On the Properties Window, set the Target Control property to the current form

![](https://downloads.intercomcdn.com/i/o/73331326/6ed9eaf7d0e1605a00acd4be/2-23\[1].png)

Now just run the app and click in any place on the form and then drag it. You will see that the form can be moved (dragged) on the screen.

## Properties

There are two important properties in the Bunifu Drag component:

### &#x20;**Vertical**

When applied, this property allows the user to move the form on the vertical axis. This property is of `boolean` type.

Here's a sample illustration **after disabling** this property:

![](https://downloads.intercomcdn.com/i/o/98935660/00c48698b406f69c44a7942f/user-form-panel-horizontal-dragging.gif)

### **Horizontal**

When applied, this property allows the user to move the form on the horizontal axis. This property is of `boolean` type.

Here's a sample illustration **after disabling** this property:

![](https://downloads.intercomcdn.com/i/o/98935733/c301470e2364966db633a4cd/user-form-panel-horizontal-dragging.gif)

That's it!

We do believe that the Bunifu Drag component will greatly help improve the UI/UX design process of your .NET applications. Do try it...

Should you have feedback or suggestions please send us via chat on the bottom right corner of the screen.
