Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Visual Studio 2005 Form Objects Disappeared

Posted on 2007-07-24
8
Medium Priority
?
272 Views
Last Modified: 2013-12-17
I have a program that I coded in Visual Studio 2005 and it has worked fine for a while.  The other day I made a minor change and added a title for the main form.  About that time I noticed that all the form objects have disappeared.  I can still see the items in the drop down for properties, but I cannot select any of the items in the form.  When I run the application the form items do not display either.

I have seen a few forums about this and they all say upgrade to SP1, I already had that before this problem showed up.  Please let me know if anyone has any ideas.

Thanks,
TJ
0
Comment
Question by:gouber
  • 4
  • 4
8 Comments
 
LVL 22

Expert Comment

by:p_davis
ID: 19557393
look in the initialize components function to see if they are still being added.-- one time i made a change to add a on click event. ctrl-z'd to get rid of it and it trashed all of my controls.
0
 
LVL 1

Author Comment

by:gouber
ID: 19558524
Thanks for the comment.  I had forgot to mention that I looked there as well.  As far as I can tell the items are added.  For example, I have a panel as one of the objects.  Below is the code that is in the initialize function.  Please let me know if that does not seem like everything.

Thanks,
TJ

this.pnlMain = new System.Windows.Forms.Panel();
this.pnlMain.Location = new System.Drawing.Point(0, 0);
this.pnlMain.Name = "pnlMain";
this.pnlMain.Size = new System.Drawing.Size(10, 10);
this.pnlMain.TabIndex = 0;
0
 
LVL 22

Expert Comment

by:p_davis
ID: 19559885
there should be a controls.add(your control name);
somewhere
0
Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

 
LVL 1

Author Comment

by:gouber
ID: 19566355
Yes, there is a line that has this.toolStripContainer1.ContentPanel.Controls.Add(this.pnlMain).  Sorry, I missed that before.  Currently I am comparing this to a similar form line by line.  Please let me know if you have any other ideas.  Thanks for your help so far.

Thanks,
TJ
0
 
LVL 22

Accepted Solution

by:
p_davis earned 1500 total points
ID: 19566551
is this form derived from a base class or is it just a default form with controls that you have added?
0
 
LVL 1

Author Comment

by:gouber
ID: 19566593
It is a default form that I added controls to.

-TJ
0
 
LVL 1

Author Comment

by:gouber
ID: 19567302
p_davis,

Thanks for all your help, I am just going to give up and redo the form.  When I compared the items line by line they looked the same.  I will still award you the points for your help, I am giving you a B because the answer did not come directly from you, but you still put lots of thought into this.

Thanks,
TJ
0
 
LVL 22

Expert Comment

by:p_davis
ID: 19567420
thanks and good luck
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

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

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month20 days, 15 hours left to enroll

810 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