[]
        
(Showing Draft Content)

Adding an Image to the Toolbar Button

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:

    To write code in Visual Basic

    cNew.Image = System.Drawing.Image.FromFile("C:\bitmap\New.bmp")
    

    To write code in C#

    cNew.Image = System.Drawing.Image.FromFile("C:\\bitmap\\New.bmp");
    

See Also

Adding Separators Between the Buttons