• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 189
  • Last Modified:

Changing the icon of control box

how do i change the icon of the control box from default vb icon to any other icon. Do i need .ico file for the image to be displaye in the control box icon or any .bmp, .gif, .jpg will work.
and Please, i need the soloution without API.

thanks.
0
Sandeep Sood
Asked:
Sandeep Sood
1 Solution
 
ShauliCommented:
If you refer to the form icon (on the upper left corner) then simply scroll the FORM's properties window to "Icon" and select the icon you wish by browsing to it.

S
0
 
Erick37Commented:
To assign a new icon with your application, set the main form's icon property to an ICO file.  The file should be a standard icon.  Your ICO file should have at least 2 icons in it, One 16x16 pixels, and one 32x32 pixels (both 16 or 256 colors).

You then assign your application the icon in the Project->Properties menu and select the form who's icon you want to use.
0
 
zzzzzoocCommented:
If you want the option at run-time, you can set the form's Icon property to an icon loaded with LoadPicture() or LoadResPicture().

    Form1.Icon = LoadPicture("C:\MyIcon.ico")
    '101 is the ID of the icon in Resource Editor
    Form1.Icon = LoadResPicture(101, vbResIcon)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now