# Bunifu Image Button (Old)

Bunifu image button works like a normal button the only difference is that you can customize and add icons or images within the button.&#x20;

## **Adding Bunifu Image Button at Design Time**

Simply locate image button in your toolbox and drag it to your form&#x20;

![](https://downloads.intercomcdn.com/i/o/72974371/da7b65572780d77aa762caee/1-15%5B1%5D.png)

### **Adding Bunifu Image Button at Run Time**

To add Bunifu Image Button at run time we will simply use the Load event handler in order to add a Bunifu Image Button on our form:

### **Code**

{% tabs %}
{% tab title="C#" %}

```
private void Form1_Load(object sender, EventArgs e)
{
    var button = new Bunifu.Framework.UI.BunifuImageButton();
    this.Controls.Add(button);
    
}
```

{% endtab %}

{% tab title="VB.NET" %}

```
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load 
    
    Dim button As New Bunifu.Framework.UI.BunifuImageButton
    Controls.Add(button)
    
End Sub
```

{% endtab %}
{% endtabs %}

## Properties

### Image

Under properties section simply click Choose Image… to set image at design time

![](https://downloads.intercomcdn.com/i/o/72974820/9d3bb9ea98758a64796845c4/Capture%5B1%5D.png)

### &#x20;**Zoom**&#x20;

This property sets the `zoom-level` of the image. The effect is that the image will zoom on mouse hover at run time.&#x20;

That's it!

We hope you will enjoy using Bunifu Image Button and that it will help you create better user experience for your users.&#x20;

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs2.bunifuframework.com/docs/ui/controls/bunifu-image-button-old.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
