Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2004-08-21
8
Medium Priority
?
359 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_
ID: 11861586
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
ID: 11862484
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
ID: 11864713
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 11

Accepted Solution

by:
Ramesh Srinivas earned 2000 total points
ID: 11869041
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
ID: 25175836
It will reappear if you cut and paste it back immediately.
0
 

Expert Comment

by:DanielMuns
ID: 25175988
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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
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…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

971 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