My own icon

I've winform app generated by VS.NET 2003. There's a deafult icon. I'd like to have my own so I've created one, deleted default, set Icon property in form to my own (I can see it) & set in project properties Application Icon property to my own. Effect  None :(  After rebuildnig application I stiil see default icon (which is deleted!!!) on form.
Any tips how to force app to display my icon


Answer this question

My own icon

  • Shail29301

    Solved my own problem :) 
    Went to Google and searched on 'icon editor', found IconCool editor. This is shareware with a 30 trial period, then $19.95 USD to purchase. Does just what I wanted.
    Good luck to all who run into this problem.

  • Nuno Linhares

    It SDI... And this.Icon = new Icon(IconFile);  didn't help also :(  
  • DavideB

    Tried all the suggestions in this post, none worked, including the code. Copied a Microsoft supplied icon and installed it. It went in properly and displayed just fine.
    Then I edited that file to what I wanted. The image stayed the same (pre-edit version)when viewed in Windows Explorer, changed in the "Windows and Fax Viewer" and paint.exe views. Did NOT change in the application title bar, but DID change in the icon properties display. Also tried the older VS V6 icon editor, same results.
    Also tried creating a new icon from scratch, after deleting all old verions. Same results: the default version shows up in the title bar, but the icon properties shows the edited view.
    Running WinXP and VS 2003. 
    Conclusion: something in the icon file is NOT updated when it is edited in VS. 
    Anyone know of another icon editor that really works properly  What does MS use

  • Tom J.

    My icon is 32x32, 16 colors... I don't think that is to much for Win2000 (this is my OS)
  • Steve Sartain

    It was created as new icon file under VS.2003... I've copied icon file into /bin/Debug but it didn't help  :( 
  • ivanbolcina

    I think the icon display abilities between Windows 2000 and WinXP are a little different, i.e. WinXP can handle icons of a higher quality or resolution than Win2000 can.  If your custom icon is too much for Windows 2000 to handle in terms of size or resolution, I think winforms will put the default icon up (probably a default icon from the CLR, not the one you deleted).  

    This may or may not apply to your situation, but I haven't had any trouble with icons when I set the Icon property in the VS.NET properties window.


  • coding for fun

    I want my own icon too!
    Any tools you know of to build them with   

    LesioS, I really wish I could help but I don't use VS.NET.  
    I think that if you were to look at your source code, not in VS, you'd see what the trouble is.  I think it's VS doin' something, but I don't know.
    Everytime I download source code for VS.NET, they always include RESX files, which store the icon...  that might be what the trouble is

  • Wing_VB6

    Should work no problems.. u have the same dev environment as I do. Unless the icon itself has a problem.

    Are you using MDI  Reason I ask is that I was having dramas with icons displaying on a MDI child form when the child was set to Maximized startup. I think it was a bug because if you minimised the form and then maximised again, the icon would appear. The workaround I used, well there was 2.. 1, I went SDI : ) and 2, loaded the icon in code on Form.Load().

    this.Icon = new Icon(IconFile);

    Give it a go.


  • Frank Ran

    Does this work
    this.Icon = new Icon(Application.StartupPath + "\bin\debug\icon.ico");

    If it does, then it's VS.NET.
    If it doesn't, you've got a real problem on your hands.

  • johncblacker

    Actually your icon should work. Are you sure it is a valid Icon file  A Bitmap or JPG just renamed extension to ico is not an icon formated file. The icon should also be in the directory of your exe file. For Example if your building it in debug mode it should be under the 

    projectName > bin > debug 
    and in release mode it should be 
    projectname > bin > release

  • My own icon