CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Icons

  1. #1
    Join Date
    Jul 1999
    Posts
    84

    Icons

    Hello,

    I have created a .ico file with the icon present in the 16x16 size and nothing in the 32x32. Now when I place this in the ImageList and hence upload it to the ToolBar,everything works fine.

    But after making the exe, if I run the exe I cannot see any of the icons on the toolbar.
    Similarly if I open the project in VB6.0 and open the form into whose toolbar I have placed the icons, the icons are not seen.
    If I run it then also icons are not shown.

    Now if I maximize the form and run the application with Ctrl+F5 then the icons are shown.

    Can any one let me know whats wrong with the icons and how can I over come this problem.



    Thanks
    Harini

  2. #2
    Join Date
    Jun 2001
    Location
    Israel
    Posts
    228

    Re: Icons

    I don't know what's wrong but if you want you can put the icons in the resource file (.res) using the Resource editor

    ----------
    The @host is everywhere!
    ----------

  3. #3
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: Icons

    Make sure you have the ImageList defined to the Toolbar either in the Property page at Design time or setting it at run time with something like

    Toolbar1.ImageList = Imagelist1




    John G

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