473,382 Members | 1,423 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Visual Studio not recognizing a VB form

I have a VB.NET WinForms project that has about 15 forms in it. When I
opened the project yesterday, one of the form files does not open as a form
(i.e. double-clicking it in Solution Explorer opens up the code file, not
the form designer). Also, it does not appear to recognize the code
file....there are no outlining indicators, typing in the code file there is
no Intellisense stuff, and the code does not compile saying that it doesnt
recognize the form's class. The form was completed in July and hasnt been
edited since. I also tried replacing the form file (.vb and .resx) from a
backup and it still does not recognize the form. Could this be an issue in
the solution file? and is there a way to rebuild that or what?

Thanks for any help
Dave Taylor
PERI
Nov 21 '05 #1
10 6710
"Dave Taylor" <no**********@processeng.com> schrieb:
I have a VB.NET WinForms project that has about 15 forms in it. When I
opened the project yesterday, one of the form files does not open as a form
(i.e. double-clicking it in Solution Explorer opens up the code file, not
the form designer). Also, it does not appear to recognize the code
file....there are no outlining indicators, typing in the code file there is


Right-click the file in solution explorer and choose "Open with...". Is the
Forms editor for Visual Basic available there?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #2
Hi Dave

I've seen this happen when you are browsing a file that hasn't been added to
a project. Have you tried doing an Add | Existing Item in Solution
Explorer...?

Nigel

"Dave Taylor" wrote:
I have a VB.NET WinForms project that has about 15 forms in it. When I
opened the project yesterday, one of the form files does not open as a form
(i.e. double-clicking it in Solution Explorer opens up the code file, not
the form designer). Also, it does not appear to recognize the code
file....there are no outlining indicators, typing in the code file there is
no Intellisense stuff, and the code does not compile saying that it doesnt
recognize the form's class. The form was completed in July and hasnt been
edited since. I also tried replacing the form file (.vb and .resx) from a
backup and it still does not recognize the form. Could this be an issue in
the solution file? and is there a way to rebuild that or what?

Thanks for any help
Dave Taylor
PERI

Nov 21 '05 #3
Thanks for the quick reply

Yes, "Visual Basic Form Editor (Default)" is listed...clicking on it brings
up the code for the form but it does not appear to be the standard code
editor (i.e. still no outline marks and no Intellisense). Also, I notice on
the context menu that the "View Code" option is missing, the only option in
that section of the menu is "View Designer".

I also tried Open With...Visual Basic Editor and gives the same
result....something that looks like a code editor but is not.

And it is only this one form...all the other forms work as expected.

I've also tried to exclude from project and then Add Existing Item...same
result....

Thanks

Dave Taylor
PERI

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ey**************@TK2MSFTNGP15.phx.gbl...
"Dave Taylor" <no**********@processeng.com> schrieb:
I have a VB.NET WinForms project that has about 15 forms in it. When I
opened the project yesterday, one of the form files does not open as a
form (i.e. double-clicking it in Solution Explorer opens up the code file,
not the form designer). Also, it does not appear to recognize the code
file....there are no outlining indicators, typing in the code file there
is


Right-click the file in solution explorer and choose "Open with...". Is
the Forms editor for Visual Basic available there?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #4
Nigel,

Thanks for the reply. Yes, I've tried Exclude from Project and Add Existing
Item to bring it back into the project....it gives the same result. I also
removed it from the project, replaced it with the backup files of the form
(.vb and .resx), then added it back into the project....same result.

-- Dave Taylor
PERI


"Nigel Armstrong" <Ni************@discussions.microsoft.com> wrote in
message news:56**********************************@microsof t.com...
Hi Dave

I've seen this happen when you are browsing a file that hasn't been added
to
a project. Have you tried doing an Add | Existing Item in Solution
Explorer...?

Nigel

"Dave Taylor" wrote:
I have a VB.NET WinForms project that has about 15 forms in it. When I
opened the project yesterday, one of the form files does not open as a
form
(i.e. double-clicking it in Solution Explorer opens up the code file, not
the form designer). Also, it does not appear to recognize the code
file....there are no outlining indicators, typing in the code file there
is
no Intellisense stuff, and the code does not compile saying that it
doesnt
recognize the form's class. The form was completed in July and hasnt
been
edited since. I also tried replacing the form file (.vb and .resx) from
a
backup and it still does not recognize the form. Could this be an issue
in
the solution file? and is there a way to rebuild that or what?

Thanks for any help
Dave Taylor
PERI

Nov 21 '05 #5
OK....dont ask me why, but using "Delete" rather than just "Exclude from
Project" fixed the problem. Deleted the files, and then I restored them
from a backup and voila.

Though for some reason it now shows the resx file for the form as well in
Solution Explorer...but hey, thats an anomly I can still compile with! :

Thanks for the input Nigel & Herfried.

-- Dave Taylor
"Dave Taylor" <no**********@processeng.com> wrote in message
news:u9****************@TK2MSFTNGP12.phx.gbl...
I have a VB.NET WinForms project that has about 15 forms in it. When I
opened the project yesterday, one of the form files does not open as a form
(i.e. double-clicking it in Solution Explorer opens up the code file, not
the form designer). Also, it does not appear to recognize the code
file....there are no outlining indicators, typing in the code file there is
no Intellisense stuff, and the code does not compile saying that it doesnt
recognize the form's class. The form was completed in July and hasnt been
edited since. I also tried replacing the form file (.vb and .resx) from a
backup and it still does not recognize the form. Could this be an issue in
the solution file? and is there a way to rebuild that or what?

Thanks for any help
Dave Taylor
PERI

Nov 21 '05 #6
Dave

A simple solution,

Add a new form to your project
Copy all code from your old project
Paste it in your newform
Exclude (not delete direct) that old form from your project

I hope this helps?

Cor

"Dave Taylor"
..
Thanks for the quick reply

Yes, "Visual Basic Form Editor (Default)" is listed...clicking on it
brings up the code for the form but it does not appear to be the standard
code editor (i.e. still no outline marks and no Intellisense). Also, I
notice on the context menu that the "View Code" option is missing, the
only option in that section of the menu is "View Designer".

I also tried Open With...Visual Basic Editor and gives the same
result....something that looks like a code editor but is not.

And it is only this one form...all the other forms work as expected.

I've also tried to exclude from project and then Add Existing Item...same
result....

Thanks

Dave Taylor
PERI

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ey**************@TK2MSFTNGP15.phx.gbl...
"Dave Taylor" <no**********@processeng.com> schrieb:
I have a VB.NET WinForms project that has about 15 forms in it. When I
opened the project yesterday, one of the form files does not open as a
form (i.e. double-clicking it in Solution Explorer opens up the code
file, not the form designer). Also, it does not appear to recognize the
code file....there are no outlining indicators, typing in the code file
there is


Right-click the file in solution explorer and choose "Open with...". Is
the Forms editor for Visual Basic available there?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


Nov 21 '05 #7
"Dave Taylor" <no**********@processeng.com> schrieb:
Though for some reason it now shows the resx file for the form as well in
Solution Explorer...but hey, thats an anomly I can still compile with! :


Maybe the "Show all files" button on top of the solution explorer is
pressed.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #8
Cor,

Thanks...that is simple and would've worked (just tried it to be
sure)...Delete and restoring it from backup also seemed to work for some
reason.

-- Dave Taylor
"Cor Ligthert" <no************@planet.nl> wrote in message
news:O$**************@TK2MSFTNGP12.phx.gbl...
Dave

A simple solution,

Add a new form to your project
Copy all code from your old project
Paste it in your newform
Exclude (not delete direct) that old form from your project

I hope this helps?

Cor

"Dave Taylor"
.
Thanks for the quick reply

Yes, "Visual Basic Form Editor (Default)" is listed...clicking on it
brings up the code for the form but it does not appear to be the standard
code editor (i.e. still no outline marks and no Intellisense). Also, I
notice on the context menu that the "View Code" option is missing, the
only option in that section of the menu is "View Designer".

I also tried Open With...Visual Basic Editor and gives the same
result....something that looks like a code editor but is not.

And it is only this one form...all the other forms work as expected.

I've also tried to exclude from project and then Add Existing Item...same
result....

Thanks

Dave Taylor
PERI

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:ey**************@TK2MSFTNGP15.phx.gbl...
"Dave Taylor" <no**********@processeng.com> schrieb:
I have a VB.NET WinForms project that has about 15 forms in it. When I
opened the project yesterday, one of the form files does not open as a
form (i.e. double-clicking it in Solution Explorer opens up the code
file, not the form designer). Also, it does not appear to recognize the
code file....there are no outlining indicators, typing in the code file
there is

Right-click the file in solution explorer and choose "Open with...". Is
the Forms editor for Visual Basic available there?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>



Nov 21 '05 #9
Nope....show all files isnt pressed. It shows the .resx file as a child
node of the form file. Its strange, but no big deal.

Thx
-- Dave Taylor
PERI

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
"Dave Taylor" <no**********@processeng.com> schrieb:
Though for some reason it now shows the resx file for the form as well in
Solution Explorer...but hey, thats an anomly I can still compile with! :


Maybe the "Show all files" button on top of the solution explorer is
pressed.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #10
"Dave Taylor" <no**********@processeng.com> schrieb:
Thanks...that is simple and would've worked (just tried it to be
sure)...Delete and restoring it from backup also seemed to work for some
reason.


.... and preserves resources too...

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Novice | last post by:
Hi all, I'm afraid this is the second posting of this information as I didn't get a response on the previous post. I will try to shorten my message (i.e. be more concise) in the hopes that it will...
6
by: jemmaq99 | last post by:
Using Visual Studio .NET 2003 I've tried to add a COM reference to a Windows Form project via the Add Reference dialog (specifically the Active DS Type Library) but always get the error message: ...
3
by: Craig Traxler | last post by:
I have a windows 2000 machine and added IIS 5.0. I installed Visual Basic .Net 2003 on the machine and attempted to create a new ASP.NET Web Appication. I received the following message when...
2
by: Mad Scientist Jr | last post by:
I have an ASP.NET project developed on one machine in Vis. Studio 2003, and moved it to an older machine that has Vis. Studio 2002. This older machine has been upgraded with the 1.1 framework, as...
2
by: loga123 | last post by:
Hi All, I am using Microsoft Visual Web Developer Studio 2005 Express Edition. I have been using it for the past few months and all of sudden today, it started to behave in a strange manner. ...
3
by: barry | last post by:
I had Visual Web Developer Express 2005 and Visual Studio 2005 installed on my computer. Realizing that I did not need Visual Web Developer Express 2005 since I had VS 2005 I removed it. My...
3
by: Edwin Smith | last post by:
I have a 2 form project in VS2005 that now hangs whenever I try to do anything with the second form. This seems to have started when I added some SQL tables from a Pervasive v.9 database using the...
1
by: thulaseeram | last post by:
hi, i am using the following code for uploading <div id="iframe" name="iframe" style="width:850px; height:120px;"> <iframe name="attach_frame" id="attach_frame"...
1
by: cnixuser | last post by:
Hello, I am having a problem that I believe is related to the way a stream reader object looks for a text file by default. What I am doing is using a StreamReader object to read the text of a text...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.