vopo

Hi,

I'm new to Visual Studio. I'm trying to create a buttons where they are in the same area as the menu, except below.

Like for example, in Internet Explorer the back button is underneath the menu.
Here;s an example if what I mean:
http://img251.imageshack.us/img251/2756/thiszx5.jpg

I'm using a .rc file to build the buttons, but i don't know to do this button building.

Can someone tell me how to do that


Re: Visual Basic Express Edition How do I add buttons in the menu area.

Martin Xie - MSFT

Hi Vopo,

I think what you are taking about is how to build Toolbar buttons with resource files.

1. Drag a ToolStrip control ToolStrip1 to your form.

2. Add an image as Resource.

Project menu -> Project properties -> Resources Tab -> click the arrow beside "Add Resource" button -> Add Existing File -> Select an image file from local machine (presume name it as "rcImage1")

3. Add ToolStripButton1 by clicking "Add ToolStripButton" arrow button on ToolStrip1 control.

4. Load image for the ToolStripButton1 in Form1_Load event.

Code Block

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

ToolStripButton1.Image = My.Resources.rcImage1

End Sub

5. Handle the ToolStripButton1_Click event.

Code Block

Private Sub ToolStripButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButton1.Click

ˇ®To do something

End Sub

I hope that can help you.

Kind regards,

Martin