To Create a toolbar we drag the pricturebox & then the image.
Suppose I want that the text is there in place of image ,Is it possible ??

why you do that. vb already have toolbar control. add toolbar on component.
Project->Component-> check on Microsoft Common Control 6.0 -> Apply it -> OK
you can see toolbar control on your toolbox

There is no such component of name Microsoft Common Control 6.0

Components dat with letter C are as follows--
Microsoft Calendar Control
Microsoft Chart control
Microsoft Comm Control
Microsoft Common dialog Control

In d above controls, I do not find dat option which u told me.

There is no such component of name Microsoft Common Control 6.0

Oh...I m Sorry :)
i means Microsoft Windows Common Control 6.0

Hey again confusion is there,Sorry for again disturbing U,there are many components with the same name,which one to choose-

Microsoft Windows Common Controls 5.0(SP2)
Microsoft Windows Common Controls 6.0(SP6)
Microsoft Windows Common Controls 2 5.0(SP2)
Microsoft Windows Common Controls -2 6.0
Microsoft Windows Common Controls -3 6.0

Hey Jx_Man,If I use my method then I have to drag the pictureBox & then Image.
Then Picture Property is set to respectice picture.

If I m using ur method,I add toolbar as suggested projects-->Components-->Drag & Drop it onto the form.

But after dragging the toolbar what I have to do to add the toolbar Buttons.
Tell me that.

After drag&Drop you will find toolbox without button.
Right click on toolbar->Properties->see for Button Tab.
In there you can insert button and remove as u want.

Right Click on toolbar control (on form) -> select for properties -> Properties Pages will shown -> select for Buttons tab -> insert and remove button for toolbar there.
if steps right, this window on attachment will shown. (see an attachment for right click and Properties Pages Window)

Attachments Right_click.JPG 30.34 KB toolbar.JPG 104.73 KB

Hi,There is no tab of such name.

Hi Sonia,

In VB6 it is called ToolBar
and it comes with :
Microsoft Windows Common Controls 6.0

Regads
Veena

Hi Queen, I got it how to insert a Toolbar.
One thing told me , I have two buttons on the MDI form.

Form1 Form2

When I dbl click on button Form1,
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)

End Sub

Even when I clik on Form2 Button,
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)

End Sub

Same code appears.

And when I write Coding in b/w these lines.
suppose I write-
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
Dim obj As New Form1
obj.Show
End Sub

At runtime,When clicking on Form1 as well as Form2 button,only Form1 is shown.

Where I m going wrong,tell me.
I want that when user at runtime clicks on form1 button, Form1 is opened, & when user clickson Form2 button,Form2 is opened.

Hi,

Try this :

Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
    Select Case Button.index
        Case 1
            Form1.Show 
        Case 2
            Form2.Show
    End Select
End Sub

Regards
Veena

This question has already been answered. Start a new discussion instead.