CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2001
    Location
    County Durham, England
    Posts
    238

    Question Icons Don not Appear on Toolbar When App is Run...

    Hello, This is driving me bonkers !

    Have an appliation in VB.net which has an MDI form with a Toolbar on it and an ImageList. I have added the Icons from the Visual Studio Common7\Graphics Folder to the Imagelist. and set the appropriate Imagelist Index on the toolbar button. The Icons show fine whilst in Design mode but as soon as I play the App, the Text is there on the button but no Icon ????

    This seems to be on in Windows XP, I have two machine's the other is Windows 2000 as the toolbars show up fine so its got to be a Windows XP issue ?

    Also again on the XP machine, I have a Tab Control which I have displayed vertically ( Left Alligned ), the Text of the Tab show's fine in Design mode but again when you run it, the text of the Tab does not show ???. If you make the Tab Control Horizontal, Top Aligned it works fine in XP, however the Vertical Tab again works fine on the Windows 2000 PC ?

    I have tried 3 DIFFERENT XP machines running the EXE for my project and all of them are the same so its not computer specific, has anybody any ideas why this is happening ?

    Many Thanks

    Ken J

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: Icons Don not Appear on Toolbar When App is Run...

    Quote Originally Posted by Judgey
    Hello, This is driving me bonkers !

    Have an appliation in VB.net which has an MDI form with a Toolbar on it and an ImageList. I have added the Icons from the Visual Studio Common7\Graphics Folder to the Imagelist. and set the appropriate Imagelist Index on the toolbar button. The Icons show fine whilst in Design mode but as soon as I play the App, the Text is there on the button but no Icon ????
    Does it work when you Only have Images on except images and text¿
    What Toolbar button style do your buttons have¿
    I'm also using XP, but I've never encountered this issue before

  3. #3
    Join Date
    Mar 2001
    Location
    County Durham, England
    Posts
    238

    Re: Icons Don not Appear on Toolbar When App is Run...

    Hi Hannes,

    Good to see you still here, hope you had a good New Year....

    Everything is set to default, Just dragged the Toolbar of the control box, and an imagelist, then added icons from the Common7 folder within the Visual Studio Installation folder. Doesn't seemt to make a difference whether I put Text on or not on the toolbar buttons,

    Also The Vertical Tab Control I have put on the Form, Left Aligned, the Text not appearing, I set My Windows XP pro to Classic Style and the Text works fine, set it back to XP Blue/Olive or Silver style and it won't show ?

    But everything works fine in Win 2000, I think its got to be project specific as I loaded the Scribble Sample from the VB samples and the toolbar works fine, even if I add a vertical tab control, that too works fine in the Scribble App, so its got to be something in this Project ????

    Cheers

    Ken

  4. #4
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: Icons Don not Appear on Toolbar When App is Run...

    Hi, Ken - Happy new year to you too, mine started a bit rough and tough!
    Anyways, as I've said, this is the very first time I come accross this - best I could do, is I can email you one of my projects (using a toolbar) which works on all my XP machines - then you could see if it works on yours. If it does, then it is project specific, if it doesn't, what Service pack do you have¿ (that's all I can think of)
    PS, if you want the emailed project, just send me a PM with your address.

  5. #5
    Join Date
    Mar 2001
    Location
    County Durham, England
    Posts
    238

    Re: Icons Don not Appear on Toolbar When App is Run...

    Hi Hannes,

    I'm on SP2, I think its definitely a setting in the project or maybe Visual Studio, as the Sample projects work fine, however this project and now any NEW projects do not.

    I think I'm going to try re-install Visual Studio and see if that makes a difference. Will let you know...

    Cheers Anyway

  6. #6
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: Icons Don not Appear on Toolbar When App is Run...

    Quote Originally Posted by Judgey
    Hi Hannes,

    I'm on SP2, I think its definitely a setting in the project or maybe Visual Studio, as the Sample projects work fine, however this project and now any NEW projects do not.

    I think I'm going to try re-install Visual Studio and see if that makes a difference. Will let you know...

    Cheers Anyway
    That's what I'll do too - just let me know

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