sureshm
May 28th, 2001, 08:15 AM
hi,
how can i add icon files to resource files.
thanx
how can i add icon files to resource files.
thanx
|
Click to See Complete Forum and Search --> : Icons In Resource file sureshm May 28th, 2001, 08:15 AM hi, how can i add icon files to resource files. thanx Cimperiali May 28th, 2001, 10:07 AM 'clic on add-ins menu 'select add-in manager 'search for vb 6 resource editor 'select it, check the loaded box 'click ok button 'click on vbresource editor ico on your vb toolbar '(top,right) 'click the ico button (seems a bounch of points) 'add icons-> look for a folder - check type of file at bottom of window: should be ico!. 'when done, save the res file 'to test: try '(beware of index numbers) Option Explicit Private Sub Command1_Click() Static myico As Integer If myico = 0 Then myico = 100 End If myico = myico + 1 If myico > 116 Then myico = 101 End If Picture1.Picture = LoadResPicture(myico, vbResIcon) End Sub to add more icons to the resource file: doubleclick on it in project clik on icon again, look for moreicon, select them, ok. they will be added! Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, 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. |