473,320 Members | 1,910 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,320 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 6701
"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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.