Results 1 to 5 of 5

Thread: [RESOLVED] AHHH!!! My icons and menu are blank!!

  1. #1

    Thread Starter
    Lively Member misterheadache's Avatar
    Join Date
    Nov 2003
    Posts
    104

    Resolved [RESOLVED] AHHH!!! My icons and menu are blank!!

    I was adding resources to my project and added & then removed a bitmap image. When I went to recompile, VB gave repeated (about 6X) error message that it couldn't find the bitmap resource that I had deleted. Then it hung up and wouldn't exit from the build and I had no choice but to kill the IDE with task manager. OF COURSE something got jacked in the process when I restarted - all of my toolbars and main menu are messed up - no icons or buttons!


    The code I think is still there because when I view the .Designer.vb file for this form all of the items are there, but they don't show up in the Document Outline. Rebuilding, Cleaning, all that doesn't fix this problem.

    Did VB just destroy my project?? HELP!
    Attached Images Attached Images  

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: AHHH!!! My icons and menu are blank!!

    You should have removed code references to that resource before you deleted it. I would think you're just going to have to go through each menu and tool bar item in the designer and re-establish their properties.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member misterheadache's Avatar
    Join Date
    Nov 2003
    Posts
    104

    Re: AHHH!!! My icons and menu are blank!!

    Ah, I may have still had a button using that image when I deleted it then. Not too smart on my part

    I'm currently comparing my last backup code to current code with CSDiff; maybe that will show where I goofed up.

  4. #4
    Frenzied Member
    Join Date
    Mar 2006
    Location
    Pennsylvania
    Posts
    1,069

    Re: AHHH!!! My icons and menu are blank!!

    Just a tip: It'd probably be faster if you just re-did it. Recovering has never really gone very well with my in VS.. Maybe I'm just doing it wrong..

  5. #5

    Thread Starter
    Lively Member misterheadache's Avatar
    Join Date
    Nov 2003
    Posts
    104

    Re: AHHH!!! My icons and menu are blank!!

    Couldn't find what exactly was wrong, but luckily I was able to use my most recent back-up of the .res, .designer.vb, and .vb files for the main form plus the solution .suo file and the .vbproj file and get things working again. I had to manually restore some code in the main form but inconsequential compared to having to revert completely to my last backup. Thanks for the tips.

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