Click to See Complete Forum and Search --> : Objects not displaying on forms


clint878
December 5th, 2005, 03:44 PM
Hi,

I'm trying to add a button to a Windows Form in a Managed C++ application. Unfortunately, any new control I try to add to the form shows up fine in the design view, but when run, it's simply not there.

I checked to see if the object was being made invisible somehow, but its "visible" property is set to true. As I just added the control to the form, there is no code anywhere that could move the object or make it invisible, and the type of control or its location on the form makes little difference.

I haven't worked on this application for a year, and in the meantime, it was connected to SourceSafe, but I deleted the project from SourceSafe and took it offline. Could that action have anything to do with the problems I've been encountering?

Another possible issue is low disk space that's caused by the "ProjectAssemblies" directory of .NET's application data overflowing with gigs of files that seem to accumulate every time I look at the form - deleting the files has no effect, positive or negative - they just reappear. There was also recently a problem with a corrupted index that caused Google Desktop Search to crash and uninstall itself.

Any ideas?

darwen
December 5th, 2005, 04:20 PM
You were getting gigs (I presume this isn't an exaggeration) of disk space occupied just opening the form ? Something is very, very wrong.

I'd suggest that your solution/project is corrupt. Although since you're having problems with the rest of your machine it sounds like your whole machine is dying.

Sounds like time for a re-install of your machine to me...

Darwen.

clint878
December 7th, 2005, 11:47 AM
Well, it seems to happen when I open the form in the forms designer. I thought that the drive was just small.

Has anyone else encountered ever-expanding files in the ProjectAssemblies directory when working with C++ Windows Forms?