# Adding an Image to the Toolbar Button

Get started with Menus and Toolbars for WinForms. Create versatile menus and docking/floating toolbars. See more in documentation here.

## Content



This topic assumes you have a toolbar button created. To add an image to your toolbar button in code, complete the following steps:

1.  Locate the command in your source file that you want to add an image to.
    
2.  Enter the following code to add an image to your toolbar button:
    
    DOC-DETAILS-TAG-OPEN
    
    DOC-SUMMARY-TAG-OPEN
    
    To write code in Visual Basic
    
    DOC-SUMMARY-TAG-CLOSE
    
    ```vbnet
    cNew.Image = System.Drawing.Image.FromFile("C:\bitmap\New.bmp")
    ```
    
    DOC-DETAILS-TAG-CLOSE
    
    DOC-DETAILS-TAG-OPEN
    
    DOC-SUMMARY-TAG-OPEN
    
    To write code in C#
    
    DOC-SUMMARY-TAG-CLOSE
    
    ```csharp
    cNew.Image = System.Drawing.Image.FromFile("C:\\bitmap\\New.bmp");
    ```
    
    DOC-DETAILS-TAG-CLOSE
    

## See Also

[Adding Separators Between the Buttons](/componentone/docs/win/online-menus-toolbar/menusandtoolbarsforw2/toolbartasks/addingseparatorsbetw)