473,769 Members | 8,283 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6757
"Dave Taylor" <no**********@p rocesseng.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....ther e 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...clicki ng 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....somet hing 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******** ******@TK2MSFTN GP15.phx.gbl...
"Dave Taylor" <no**********@p rocesseng.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....the re 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.mi crosoft.com> wrote in
message news:56******** *************** ***********@mic rosoft.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**********@p rocesseng.com> wrote in message
news:u9******** ********@TK2MSF TNGP12.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....ther e 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...clicki ng 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....somet hing 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******** ******@TK2MSFTN GP15.phx.gbl...
"Dave Taylor" <no**********@p rocesseng.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**********@p rocesseng.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$******** ******@TK2MSFTN GP12.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...clicki ng 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....somet hing 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******** ******@TK2MSFTN GP15.phx.gbl...
"Dave Taylor" <no**********@p rocesseng.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******** **********@TK2M SFTNGP12.phx.gb l...
"Dave Taylor" <no**********@p rocesseng.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

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

Similar topics

1
3921
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 make it easier for someone (i.e. a Microsoft person) to digest the information and respond to it. I am a C++ and Java developer with over 3 years of industry experience. I've written low level C++ code, in addition to web clients that use web...
6
741
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: "A reference to 'Active DS Type Library' could not be added. The type library wrapper tool 'tlbimp' cannot be found on this system. Please re-install Visual Studio." This occurs regardless of the actual tlb or dll selected and happens on...
3
1257
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 attempting to create the projec "Visual Studio .NET has detected the the specified Web server is not running ASP.NEt version 1.1. You will be unable to run ASP.NET Web applications or services. The project is not created. I tried repairing the VB...
2
1345
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 well as all the latest MS service XP and .NET service packs. I created a new ASP.NET project on the older machine, and imported all the .ASPX, .VB files - but when it compiles I get errors like: 'SelectedValue' is not a member of...
2
1068
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. I am not able to open any .aspx files from solution explorer either in Design or Source mode, whereas I am able open .aspx.vb files in my project.
3
1388
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 question could this be a possible reason that the ASP.NET configuration tool is not working in VS 2005 when I am doing web development? What happens is upon execution it just brings me back into the same VS design page from where I executed.
3
6061
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 Pervasive ODBC driver. The devenv.exe process hangs and will not respond with about 50% cpu usage and about 100 megs of memory used. I am running it on an Athlon 64 bit dual core with 32 bit Windows XP pro. I have 2 megs of memory so I don't...
1
1474
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" src="http://100.100.100.233/storyclix/upload.php" style="width:850px; height:120px;" frameborder="0"></iframe> </div> <div class="form-item" name="_Confirm_buttons" id="_Confirm_buttons"> <input type="button" value="Add media" class="form-submit"...
1
2898
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 file which includes some html code to populate html formatted content as the text of an asp:label (<asp:label>). The reading of the text file itself goes just fine ;however, this only occurs when I use an absolute file path which will not work of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10049
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9998
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8876
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.