Click to See Complete Forum and Search --> : Icon question
aussiecyclone
May 9th, 2001, 10:32 PM
Hi,
How do I take a standard Icon like the Door Icon to exit and use it in VB5 as a command button.
Any help appreciated.
Regards,
Alan
Cimperiali
May 10th, 2001, 03:08 AM
Change the command button style to graphical. Use the picture property to select your icon. Set the caption property to "". Have fun...
Special thanks to Lothar "the Great" Haensler, Tom Archer, Bruno Paris and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus.
Cimperiali
May 10th, 2001, 03:11 AM
...Or: insert a imagebox in your form. Load in its picture property the icon. Doubleclick on imagebox, and code in click event your code to exit (which should be:
set everyobiect loaded in runtime = nothing
forms opened unload
set forms = nothing
unload this form)
Special thanks to Lothar "the Great" Haensler, Tom Archer, Bruno Paris and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.