Today we will take a look at the method of inserting pictures into VB menu items in the VS2012 environment. It is very simple. Please see the detailed introduction below.
1. Open VS2012, create a new VB window application, and create a new form.
2. Pull a menu into the newly created form: MenuStrip
3. Add a menu item to the newly added menu, name it Test, right-click Test, and select Set Image.
4. Select the resource corresponding to the image according to your actual situation. If there is a resource file in the project, you can select the project resource file. Otherwise, you need to select local resources.
5. Select local resources here and click Import.
6. Switch to the directory where the picture is located, select the corresponding picture, and click to open.
7. Return to the Select Resource dialog box and click OK.
8. The menu item image is added successfully.
9. The running results are as follows:
The above is the tutorial for inserting pictures in VB. I hope you like it. Please continue to pay attention to the new webmaster website.
Related recommendations:
How to program form unloading event in VB6.0?
How to add comment statements to VB6.0 code?
How to add extended control shortcut to VB6.0 toolbox?