# Making the ToolBar Appear Like the Default Toolbar in Internet Explorer(IE)

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

## Content



This topic demonstrates how to make the [C1ToolBar](/componentone/docs/win/online-menus-toolbar/) appear like the default toolbar in IE by using the **ButtonLookFlags** enumeration. The **ButtonLookFlags** enumeration contains the parameters: _Text_, _TextAndImage_, _Image_, and _Default_. These parameters give you the ability to modify your toolbar button to show text, text and an image, or just an image.

The following code demonstrates how you can make the [C1ToolBar](/componentone/docs/win/online-menus-toolbar/) appear like the default toolbar in IE. The following example uses all of the parameters (_TextAndImage_, _Image_, _Default_, and _Text_) contained in the **ButtonLookFlags** enumeration to make the C1ToolBar appear similar to the IE toolbar:

1.  Create the first toolbar button and make it appear as an image. The following code shows you how to use the **ButtonLookFlags** enumeration to make the toolbar button appear as an image:
    
    DOC-DETAILS-TAG-OPEN
    
    DOC-SUMMARY-TAG-OPEN
    
    To write code in Visual Basic
    
    DOC-SUMMARY-TAG-CLOSE
    
    ```vbnet
    Dim ch As C1CommandHolder = C1CommandHolder.CreateCommandHolder(Me)
    Dim tb As New C1ToolBar()
    Me.Controls.Add(tb)
    tb.CommandHolder = ch
    Dim cNew As New C1Command()
    Dim cl As C1CommandLink
    cNew.Text = "New"
    cNew.Image = System.Drawing.Image.FromFile("C:\Images\New.bmp")
    cl = New C1CommandLink(cNew)
    tb.CommandLinks.Add(cl)
    'Use the ButtonLookFlags enumeration to make the toolbar button appear as an image
    cl.ButtonLook = ButtonLookFlags.Image
    ```
    
    DOC-DETAILS-TAG-CLOSE
    
    DOC-DETAILS-TAG-OPEN
    
    DOC-SUMMARY-TAG-OPEN
    
    To write code in C#
    
    DOC-SUMMARY-TAG-CLOSE
    
    ```csharp
    C1CommandHolder ch = C1CommandHolder.CreateCommandHolder(this);
    C1ToolBar tb = new C1ToolBar();
    this.Controls.Add(tb);
    tb.CommandHolder = ch;
    C1Command cNew = new C1Command();
    cNew.Text = " New ";
    cl = new C1CommandLink(cNew);
    tb.Commandlinks.Add(cl);
    //Use the ButtonLookFlags enumeration to make the toolbar button appear as an image
    cl.ButtonLook = ButtonLookFlags.Image;
    ```
    
    DOC-DETAILS-TAG-CLOSE
    
2.  Create a second toolbar button and make it appear as text and image. The following code shows you how to use the **ButtonLookFlags** enumeration to make the toolbar button appear as text and an image:
    
    DOC-DETAILS-TAG-OPEN
    
    DOC-SUMMARY-TAG-OPEN
    
    To write code in Visual Basic
    
    DOC-SUMMARY-TAG-CLOSE
    
    ```vbnet
    Dim cOpen As New C1Command()
    cOpen.Text = "Open"
    cl = New C1CommandLink(cOpen)
    cOpen.Image =  System.Drawing.Image.FromFile("C:\Images\FileOpen.bmp")
    tb.CommandLinks.Add(cl)
    'Use the ButtonLookFlags enumeration to make the toolbar button appear as text and an image
    cl.ButtonLook = ButtonLookFlags.TextAndImage
    ```
    
    DOC-DETAILS-TAG-CLOSE
    
    DOC-DETAILS-TAG-OPEN
    
    DOC-SUMMARY-TAG-OPEN
    
    To write code in C#
    
    DOC-SUMMARY-TAG-CLOSE
    
    ```csharp
    C1Command cOpen = new C1Command();
    cOpen.Text = "Open";
    cl = new C1CommandLink(cOpen);
    cOpen.Image = System.Drawing.Image.FromFile("C:\Images\FileOpen.bmp");
    tb.CommandLinks.Add(cl);
    //Use the ButtonLookFlags enumeration to make the toolbar button appear as text and an image
    cl.ButtonLook = ButtonLookFlags.TextAndImage;
    ```
    
    DOC-DETAILS-TAG-CLOSE
    
3.  Create a third toolbar button and make it appear as the default appearance. The following code shows you how to use the **ButtonLookFlags** enumeration to make the toolbar button appear as the default appearance:
    
    DOC-DETAILS-TAG-OPEN
    
    DOC-SUMMARY-TAG-OPEN
    
    To write code in Visual Basic
    
    DOC-SUMMARY-TAG-CLOSE
    
    ```vbnet
    Dim cSave As New C1Command()
    cSave.Text = "Save"
    cl = New C1CommandLink(cSave)
    tb.CommandLinks.Add(cl)
    cSave.Image = System.Drawing.Image.FromFile("C:\Images\FileSave.bmp")
    'Use the ButtonLookFlags enumeration to make the toolbar button appear as default
    cl.ButtonLook = ButtonLookFlags.Default
    ```
    
    DOC-DETAILS-TAG-CLOSE
    
    DOC-DETAILS-TAG-OPEN
    
    DOC-SUMMARY-TAG-OPEN
    
    To write code in C#
    
    DOC-SUMMARY-TAG-CLOSE
    
    ```csharp
    C1Command cSave = new C1Command();
    cSave.Text = "Save";
    cl = new C1CommandLink(cSave);
    tb.CommandLinks.Add(cl);
    cSave.Image = System.Drawing.Image.FromFile("C:\Images\FileSave.bmp")
    //Use the ButtonLookFlags enumeration to make the toolbar button appear as default
    cl.ButtonLook = ButtonLookFlags.Default;
    ```
    
    DOC-DETAILS-TAG-CLOSE
    
4.  Create a fourth toolbar button and make it appear as text. The following code shows you how to use the **ButtonLookFlags** enumeration to make the toolbar button appear as text:
    
    DOC-DETAILS-TAG-OPEN
    
    DOC-SUMMARY-TAG-OPEN
    
    To write code in Visual Basic
    
    DOC-SUMMARY-TAG-CLOSE
    
    ```vbnet
    Dim cFavorites As New C1Command()
    cFavorites.Text = "Favorites"
    cl = New C1CommandLink(cFavorites)
    tb.CommandLinks.Add(cl)
    'Use the ButtonLookFlags enumeration to make the toolbar button appear as text
    cl.ButtonLook = ButtonLookFlags.Text
    ```
    
    DOC-DETAILS-TAG-CLOSE
    
    DOC-DETAILS-TAG-OPEN
    
    DOC-SUMMARY-TAG-OPEN
    
    To write code in C#
    
    DOC-SUMMARY-TAG-CLOSE
    
    ```csharp
    C1Command cFavorites = new C1Command();
    cFavorites.Text = "Save";
    cl = new C1CommandLink(cFavorites);
    tb.CommandLinks.Add(cl);
    //Use the ButtonLookFlags enumeration to make the toolbar button appear as text
    cl.ButtonLook = ButtonLookFlags.Text;
    ```
    
    DOC-DETAILS-TAG-CLOSE
    
5.  Save and run your application. Your [C1ToolBar](/componentone/docs/win/online-menus-toolbar/) will appear similar to the following toolbar:<br />![Toolbar](https://cdn.mescius.io/document-site-files/images/a27cb622-e6d9-4efc-a0b0-0c31245fd632/imagesext/image10_34.png)


> type=note
> **Note**: Your toolbar images will appear different from the toolbar images in this image. The first, second, third, and fourth toolbar buttons are shown as an image, text and image, default, and text, respectively.

## See Also

[Making the Image in the Toolbar Button Appear More Vibrant](/componentone/docs/win/online-menus-toolbar/menusandtoolbarsforw2/toolbartasks/makingtheimageinthet)