Click to See Complete Forum and Search --> : Form displayed as class only problem.


leeshadmi
September 10th, 2005, 01:33 PM
Hi
As you can see in the attached image i having these problems from time to time in some of my forms.
What is the problem and how can i avoid it?

I can't open the form in design view... only in code.
Thanks

ambreesh
September 10th, 2005, 02:38 PM
On visual studio

go to File - > souce Control -> Open from source control - >change source control - > disconnect - > unbind.

hope this is clear.

ambreesh
September 10th, 2005, 02:40 PM
wait a minute now what u just said was that u were tring to open a vb file in the design view?????????????/

u cant do that, u can do that only for files with extension .aspx.vb or .aspx files

the thing that i posted already will help u disconnect from source safe.

leeshadmi
September 11th, 2005, 12:14 AM
Thanks
About the source safe i know how to work with it.
The files are forms that i could see in the designe view the last time i try.
I don't know why these problems exist but this files are forms that i designed in the Forms Editor vew.

jhammer
September 11th, 2005, 04:08 AM
You have a problem with the vbproj file.
Open it with notepad. For each file in the project there is a File section.
There is a SubType tag for each file, and for forms it should be set as "Form".
For example:

<File
RelPath = "..."
SubType = "Form"
BuildAction = "Compile"
/>

leeshadmi
September 11th, 2005, 04:33 AM
You are Unbelievable - Thanks it fixed the prob
:blush: