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.
Sandeep SoodProgrammerAsked:
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.

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

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
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
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
Web Graphics Software

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.