Bunifu Framework Docs
HomePricingFAQsMy Account
  • Introduction
  • Getting started
    • Requirements
    • Installation
    • Installing for .Net 5 & Above
    • Licensing
      • Managing your licenses
      • Bunifu Licensing CLI
      • Bunifu Device Remover (Deprecated)
  • BUNIFU UI
    • Controls
      • Bunifu Button
      • Bunifu Button (variant)
      • Bunifu Cards
      • Bunifu CheckBox
      • Bunifu Circle Progress
      • Bunifu Datagrid View
      • Bunifu Date Picker
      • Bunifu Drop Down
      • Bunifu Flat Button
      • Bunifu Form Caption Button
      • Bunifu Form Control Box
      • Bunifu Form Resize Icon
      • Bunifu Gradient Panel
      • Bunifu Icon Button
      • Bunifu Image Button (New)
      • Bunifu Image Button (Old)
      • Bunifu IOS Switch (1.5.3)
      • Bunifu Label
      • Bunifu Loader
      • Bunifu Picture Box
      • Bunifu Pages
      • Bunifu Panel
      • Bunifu Progress Bar
      • Bunifu Radial Gauge
      • Bunifu Radio Button
      • Bunifu Rating
      • Bunifu Range
      • Bunifu Separator
      • Bunifu Sliders
      • Bunifu Shadow Panel
      • Bunifu Shapes
      • Bunifu Switch (1.5.3)
      • Bunifu ScrollBars
      • Bunifu Toggle Switch
      • Bunifu Toggle Switch (variant)
      • Bunifu Tile Button
      • Bunifu Thin Button (1.5.3)
      • Bunifu ToolTip
      • Bunifu Textbox
      • Bunifu User Control
    • Components
      • Bunifu Color Transition
      • Bunifu Drag
      • Bunifu Elipse [Deprecated]
      • Bunifu Form Dock
      • Bunifu Form Drag
      • Bunifu Form Resizer
      • Bunifu Snackbar
      • Bunifu Transition
  • BUNIFU CHARTS
    • Introduction
      • Quick Tips
    • Chart Components
      • Bunifu Bar Chart
      • Bunifu Bubble Chart
      • Bunifu Canvas Control
      • Bunifu Doughnut Chart
      • Bunifu Horizontal bar Chart
      • Bunifu Line Chart
      • Bunifu Pie chart
      • Bunifu Polar Chart
      • Bunifu Radar Chart
  • BUNIFU DATAVIZ [Deprecated]
    • Basic Charts [Deprecated]
      • Step Line Chart [Deprecated]
      • Step Area Chart [Deprecated]
      • Spline Chart [Deprecated]
      • Pie Chart [Deprecated]
      • Line Chart [Deprecated]
      • Doughnut Chart [Deprecated]
      • Bar Chart [Deprecated]
      • Area Chart [Deprecated]
      • Column Chart [Deprecated]
    • Advanced Charts [Deprecated]
      • Stacked Column 100 Chart [Deprecated]
      • Stacked Column Chart [Deprecated]
      • Stacked Bar Chart 100 [Deprecated]
      • Stacked Bar Chart [Deprecated]
      • Stacked Area Chart 100 [Deprecated]
      • Stacked Area Chart [Deprecated]
      • Scatter Chart [Deprecated]
      • Range Spline Area Chart [Deprecated]
      • Range Column Chart [Deprecated]
      • Range Bar Chart [Deprecated]
      • Range Area Chart [Deprecated]
      • OHLC Chart [Deprecated]
      • Candle Stick Chart [Deprecated]
      • Bubble Chart [Deprecated]
Powered by GitBook
On this page
  • Overview
  • Getting started
  • Adding Bunifu Form Resizer at Design Time
  • Adding Bunifu Form Resizer at Run Time
  • Properties

Was this helpful?

  1. BUNIFU UI
  2. Components

Bunifu Form Resizer

Add resize capabilities to a borderless Windows Form.

PreviousBunifu Form DragNextBunifu Snackbar

Last updated 2 years ago

Was this helpful?

Overview

Bunifu Form Resizer is a component that lets you resize a borderless form to your desired size preference. Cherry on the cake: it works out of the box — no C# code is needed to make it work.

A demo is worth a thousand words:-

To resize the Windows Form, we have to hover on any of the edges or borders of the Windows Form, select and resize it by using its handle (grip). The component provides a couple of properties, which are all documented here.

Getting started

Adding Bunifu Form Resizer at Design Time

It is easy to add a Bunifu Form Resizer at the designer level.

Step 1: First, make sure that the Windows Form is borderless. This can be done either by setting the FormBorderStyle property to none. Also, ensure the form has a padding of at least 1

Step 2: Find Bunifu Form Resizer in your toolbox and drag it onto your form as shown below:

It is worth noting that at this point the Windows Form is resizable.

Optional step: You can add a resize icon on the bottom right corner of Windows Form indicating that it is a resizable window. To add the icon, search for Bunifu Form Resize Icon and drag and place it on the bottom right corner of the form as shown below:

Adding Bunifu Form Resizer at Run Time

To add a Bunifu Form Resizer on our form at run-time, use the constructor of your form to run the following code:-

public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            BunifuFormResizer formResizer = new BunifuFormResizer();
            formResizer.ContainerControl = this;
            formResizer.Enabled = true;
            formResizer.ParentForm = this;
            formResizer.ResizeHandlesWidth = 6;
        }
    }
Partial Public Class Form1
Inherits Form
Public Sub New()
	InitializeComponent()
	Dim formResizer As New BunifuFormResizer()
	formResizer.ContainerControl = Me
	formResizer.Enabled = True
	formResizer.ParentForm = Me
	formResizer.ResizeHandlesWidth = 6
End Sub
End Class

Let's take a deep dive and get insights into the available properties on Bunifu Form Resizer

Properties

1. ResizeHandleWidth

This property gets and sets the width of the Window resize handle (i.e. the resize cursor types of SizeNS, SizeNESW, SizeNWSE and SizeWE). The larger the value, the larger the width of the cursor handle.

2. Enabled

This property gets and sets a boolean value which determines if the the resize functionality works on the form. A false value disables resizing events on the borderless Windows Form.