A VERY easy question

Hello, I've aquestion:

How do I create a tool-bar ? when I'm adding buttons, the picture is 3D, and I won't it to be flat.Do I need to add an imange and then create an event of draging ?  and if so, how do I do that.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

If you are using the Toolbar from the Microsoft Windows Common Controls ocx, you can set the Style property to 1 (tbrFlat). If you are using some other Toolbar, let us know which one.
You want a tool bar with 3D buttons or you want it flat and when the mouse passes over it gets 3D ??
lirongAuthor Commented:
I didn't know on the tool bar OCX possibility. How do I assign the buttons to that tool bar ??
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

Drag one on your form, right click on it and choose 'Properties'.
You can bind it to an imagelist control (from the same ocx) and assign a picture to each button.
lirongAuthor Commented:
How can I tell, which button was pressed ???
Step by Step then:
1- Add the Microsoft Windows Common Controls 5.0 (for VB5) or 6.0 (for VB6)

2- Double Click the ToolBar Icon on the ToolBox, it will add a toolbar on the top of your form;

3- insert a Image list control by the same way above.

4- ask the image list properties,click on images and on insertpicture button to choose your picture. you can add more pics;

5- bind the  toolbar to your imagelist selecting the toolbar properties and in the imagelist field select your imagelist;

6- add the buttons clicking on the buttons tab, Insert button; the KEY field is your identifier for this button. I use btn1, btn2 as values. To choose what picture will be on this button, on the image field, put the index of the pic of the image list;

7- to know what button was pressed:

Private Sub toolbar1_ButtonClick(ByVal Button As Button)
Select Case Button.Key
   Case Is = "btn1" :  MsgBox "You pressed btn1"
   Case Is = "btn2"  :  MsgBox "You pressed btn2"
End Select
End Sub

I think thats what you need....

lirongAuthor Commented:
Thank you very much
I wouldnt mind to get the points added to my account then...

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.