CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2000
    Posts
    24

    Icons In Resource file

    hi,
    how can i add icon files to resource files.
    thanx


  2. #2
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Icons In Resource file

    '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.
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured