It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

how to create icon bar and icons in VB6? urgent help needed

Moderator: dafunkymunky

how to create icon bar and icons in VB6? urgent help needed

Postby hadimohammed365 on Wed Apr 22, 2009 11:43 am

hi,
can anyone tell me how to make an icon in visual basic 6, icons like open, copy,paste, save, save as, run etc on the VB form
and how to create a bar for it as like a bar comes up in menu editor i want a bar below it for icons ..........any help will be appreciated.
thanks
hadimohammed365
 
Posts: 2
Joined: Sun Mar 29, 2009 10:30 am

Re: how to create icon bar and icons in VB6? urgent help needed

Postby Keithuk on Sat Jul 11, 2009 12:53 am

hadimohammed365 wrote:hi,
can anyone tell me how to make an icon in visual basic 6, icons like open, copy,paste, save, save as, run etc on the VB form and how to create a bar for it as like a bar comes up in menu editor i want a bar below it for icons


Well the common way in VB is to right-click on a blank area of your ToolBox and select Components or press Ctrl+T. Scroll down until you see Microsoft Common Controls 5.0 (SP2), Comctl32.ocx or Microsoft Common Controls 6.0, Mscomctl.ocx.

This will add a Toolbar to your Form where you can add buttons with icons. You need to add an ImageList to add any icons for the buttons.

Or you can make your own toolbar using the standard Command button and set the Style property of the button to 1 - Graphical then add any picture/icon using the Picture property to the button. :wink:
User avatar
Keithuk
 
Posts: 11
Joined: Fri Jun 01, 2007 11:16 am
Location: Staffordshire, England


Who is online

Users browsing this forum: No registered users and 5 guests