Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / April 2004

Tip: Looking for answers? Try searching our database.

Dissapearing Forms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chuck - 01 Apr 2004 14:51 GMT
During load of a project in VS, my forms displayed in the solution explorer are gray
By the end of project load half of them are white (i.e. you can't go into the UI editor and edit them because the IDE thinks they are not form objects)
If I add a new form, they all come back to gray

I don't know if it is related but when I save ALL I frequently get the message
An error occurred saving the project user options file NucOps_Scan.vbproj.use

If I cancel, I can save again, no message.  If I save it, overwrites ok

This is the .vbproj information for a white for

    <Fil
                   RelPath = "forms\frmEdit.vb
                   SubType = "Code
                   BuildAction = "Compile
               /><Fil
                   RelPath = "forms\frmEdit.resx
                   DependentUpon = "frmEdit.vb
                   BuildAction = "EmbeddedResource
               /
Gary Chang - 02 Apr 2004 03:17 GMT
Hi Chuck,

Does this problem only occur to your current VB .NET project or all the
other projects?

>I don't know if it is related but when I save ALL I frequently get the message:
An error occurred saving the project user options file
NucOps_Scan.vbproj.user

If it is the first case, probably the vdproj.user file is currupted for
some reasons, I suggest can close the VS.NET IDE, and delete(/rename) this
file, and then reopen the IDE, the IDE will re-create the file, wish it
work.

By the way, I will consult this issue to the product team mamber, and will
update you the results I get.

Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Online Partner Support

Signature

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
Chuck - 05 Apr 2004 19:06 GMT
Gary
It happens in some not all of my projects
It happens if I copy the same project to a new machine

Marc
In this project I don't use inherited forms or usercontrols.  I do have a lot of my own inherited classes though
I did use a 3rd party control once and then uninstalled the 3rd party software, that caused big problems in a similar project.  This one is clean though

Does the cut/paste method work forever. Or do you have to do it everytime you load the project
Gary Chang - 06 Apr 2004 07:40 GMT
Hi Chuck,

Thanks for your reply!

> I did use a 3rd party control once and then uninstalled the 3rd party software, that caused big problems in a similar project.  This one is clean
though.

What are big problems the 3rd party software caused? Is it just the
problems you mentioned in your first message?

>It happens in some not all of my projects.
It happens if I copy the same project to a new machine.

By the way, do you have tried those methods I suggested?
Do you mean the problem would happen when you copy the well project to a
new machine or copy the problematic forms to a new well project?
If it is the first case, how about copy the project files one by one to a
new project to see which one is culprit?

And if it is convenient, would you please upload a self-alone project
(zipped as attachment) to the group? Maybe I can repro the problem on my
side.

Best regards,

Gary Chang
Microsoft Online Partner Support

Signature

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
> Thread-Topic: Dissapearing Forms
> thread-index: AcQbOKpwGtKS9BrIQCG7v/UMK+bTSw==
> X-Tomcat-NG: microsoft.public.vsnet.ide
> From: "=?Utf-8?B?Q2h1Y2s=?=" <nospam@crlf.com>
> References:  <920301F2-C440-4433-B85C-B97DC244D968@microsoft.com>
<Mwsi2iFGEHA.608@cpmsftngxa06.phx.gbl>
> Subject: RE: Dissapearing Forms
> Date: Mon, 5 Apr 2004 11:06:06 -0700
[quoted text clipped - 16 lines]
>
> Gary,
It happens in some not all of my projects.
It happens if I copy the same project to a new machine.

Marc,
In this project I don't use inherited forms or usercontrols.  I do have a
lot of my own inherited classes though.
I did use a 3rd party control once and then uninstalled the 3rd party
software, that caused big problems in a similar project.  This one is clean
though.

Does the cut/paste method work forever. Or do you have to do it everytime
you load the project?
Gary Chang - 02 Apr 2004 04:06 GMT
Hi Chuck,

Additionally, if a new VB.NET project is OK, how about move the forms  of
the problematic project to a new good project?

Thanks!

Best regards,

Gary Chang
Microsoft Online Partner Support

Signature

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
Marc Bernard - 02 Apr 2004 18:13 GMT
> During load of a project in VS, my forms displayed in the solution explorer are gray.
> By the end of project load half of them are white (i.e. you can't go into the UI editor and edit them because the IDE thinks they are not form
objects).

I see this all the time in C# projects.  The culprit seems to be inherited
forms (and usercontrols).

The easiest way to fix this is to either edit the project file and change
"Code" to "Form" in the SubType, or you can try cutting and pasting the base
class name in the IDE.

For example, where you have:
public class MyClass : MyBaseClass

cut "MyBaseClass" and paste it right back.  I find this fixes the solution
explorer (and the project, I guess).

Marc

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.