Solved

Why do controls "suddenly" disappear in design time for absolutely NO reason???

Posted on 2004-08-21
8
341 Views
Last Modified: 2010-04-23
I'd like to apologize if I seem rather frustrated.


First, while working with my project, the main menu is not being displayed on the design form.   After running the project, I came back to the design view and it was suddenly gone.   This was rather confusing as I could still run the project and the menu would appear normal at run-time.   But when I go back to design it, it's gone.  I moved out all of the controls out of the way to see if it was hiding somewhere, no where could I find it.   I closed the program out, and back in, and it's still gone.   I restarted my computer, and it's still gone.  I try manually setting the coordinates, and it's still GONE!

This has happened at other various times to other controls as well, they would suddenly disappear from the design grid, and it is one of the most frustrating obnoxious behaviours of such a supposedly advanced program.   I have less than 20 controls combined on this form, no heavy coding at all.  I'm running MDE 7.1.3088.  

Is there any solution to this madness?
0
Comment
Question by:OnlineGuitarist
8 Comments
 
LVL 5

Expert Comment

by:Xentor_
Comment Utility
I'm not sure what causes this, but I've run into it several times... The app I'm writing at work has a lot of inherited controls, so I think the IDE is having a bit of trouble...

Basically I just fidget with it until it reappears... With that form closed, I try doing a full compile, maybe switching from debug to release or vice-versa, closing-and-reopening Visual Studio.... Sometimes it takes two or three tries, but it DOES come back, unless you save the file after it vanishes.

If anyone has a foolproof solution, I'd like to hear it too.
0
 

Author Comment

by:OnlineGuitarist
Comment Utility
I think i have found a solution.

I havn't tried it, just found it tho am now too sleepy to perform needed operations, will try tomorrow morning.

Looks like a lot of tedious work for something I had no part in messing up.   thx MS, for a completely wasted day.

http://www.dotnet247.com/247reference/msgs/28/141741.aspx
0
 

Author Comment

by:OnlineGuitarist
Comment Utility
ok, so the above link didn't help.

I have found another possible answer.   I have the VB.net powerpack controls installed.   I read a link somewhere that said something about the "copy local" option of 3rd party controls.   I removed the reference to these controls in the project, then restarted and my main menu comes back @ design time, however I no longer have access to the 3rd party controls.   If I re-add references to those controls, then the mainmenu disappears again.

still no solution on how to get them to run together.
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 11

Accepted Solution

by:
saleek earned 500 total points
Comment Utility
There is a VS bug (VB.NET), whereby if you add user controls, add normal controls, compile, then remove user controls from tool bar>>> then controls dissappear!

Not sure if it has been fixed, as I haven't used User Controls since!

regards,

KS
0
 

Expert Comment

by:DanielMuns
Comment Utility
It will reappear if you cut and paste it back immediately.
0
 

Expert Comment

by:DanielMuns
Comment Utility
If found the solution:
I ended up comparing the code to another form that was working and found that this form was missing
Me.Menu = Me.MainMenu1 (mainmanu1 is the name of my main menu control) in the " Windows Form Designer generated code " region.  Just put it back there.

0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now