473,387 Members | 1,540 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,387 software developers and data experts.

Unable to open VB WinForms files in designer mode.

Suddenly I find myself unable to open Winforms files in designer mode. I get
the message quoted below. I can open other types of vb files like modules,
classes and code behind files, but simply creating a new project and double
clicking on Form1.vb gets me this message:

<<<
There is no editor available for
'C:\....\Form1.vb'.
Make sure the application for the file type (.vb) is installed.
>>>
I am using Vista x64 and Visual Studio 2005. A repair of the installation
and reinstallation of SP1 and the Vista updated did not help. Any ideas?
Aug 22 '07 #1
8 9005
From the message, it looks like the file association got screwed up somehow.
If you attempt to just open the .vb file directly does it launch visual
studio?

If that does prove to the the issue, I can't be much help with regards to
where/how to set file associations in Vista though. Don't have it installed
and the very limited experience I do have with it leads me to beleive it's
probably no where close to how it was handled before.

"RickD" <Ri***@discussions.microsoft.comwrote in message
news:A4**********************************@microsof t.com...
Suddenly I find myself unable to open Winforms files in designer mode. I
get
the message quoted below. I can open other types of vb files like modules,
classes and code behind files, but simply creating a new project and
double
clicking on Form1.vb gets me this message:

<<<
There is no editor available for
'C:\....\Form1.vb'.
Make sure the application for the file type (.vb) is installed.
>>>>

I am using Vista x64 and Visual Studio 2005. A repair of the installation
and reinstallation of SP1 and the Vista updated did not help. Any ideas?

Aug 22 '07 #2
Thanks Matt,

Yes, the associations work fine. Any .vb file will launch Visual Studio. It
seems to be a Visual Studio issue in that other .vb files are opened and
edited fine by VS including classes and modules and even Form1.Designer.vb.
It is just the file that invokes the visual designer, Form1.vb that won't
open.

"Matt F" wrote:
From the message, it looks like the file association got screwed up somehow.
If you attempt to just open the .vb file directly does it launch visual
studio?

If that does prove to the the issue, I can't be much help with regards to
where/how to set file associations in Vista though. Don't have it installed
and the very limited experience I do have with it leads me to beleive it's
probably no where close to how it was handled before.

"RickD" <Ri***@discussions.microsoft.comwrote in message
news:A4**********************************@microsof t.com...
Suddenly I find myself unable to open Winforms files in designer mode. I
get
the message quoted below. I can open other types of vb files like modules,
classes and code behind files, but simply creating a new project and
double
clicking on Form1.vb gets me this message:

<<<
There is no editor available for
'C:\....\Form1.vb'.
Make sure the application for the file type (.vb) is installed.
>>>
I am using Vista x64 and Visual Studio 2005. A repair of the installation
and reinstallation of SP1 and the Vista updated did not help. Any ideas?


Aug 22 '07 #3
On Aug 22, 7:40 am, RickD <Ri...@discussions.microsoft.comwrote:
Thanks Matt,

Yes, the associations work fine. Any .vb file will launch Visual Studio. It
seems to be a Visual Studio issue in that other .vb files are opened and
edited fine by VS including classes and modules and even Form1.Designer.vb.
It is just the file that invokes the visual designer, Form1.vb that won't
open.

"Matt F" wrote:
From the message, it looks like the file association got screwed up somehow.
If you attempt to just open the .vb file directly does it launch visual
studio?
If that does prove to the the issue, I can't be much help with regards to
where/how to set file associations in Vista though. Don't have it installed
and the very limited experience I do have with it leads me to beleive it's
probably no where close to how it was handled before.
"RickD" <Ri...@discussions.microsoft.comwrote in message
news:A4**********************************@microsof t.com...
Suddenly I find myself unable to open Winforms files in designer mode. I
get
the message quoted below. I can open other types of vb files like modules,
classes and code behind files, but simply creating a new project and
double
clicking on Form1.vb gets me this message:
<<<
There is no editor available for
'C:\....\Form1.vb'.
Make sure the application for the file type (.vb) is installed.
I am using Vista x64 and Visual Studio 2005. A repair of the installation
and reinstallation of SP1 and the Vista updated did not help. Any ideas?
What happens if you add a brand new empty form to the project? Can
that one be opened in the designer?

Chris

Aug 22 '07 #4
No, unfortunately creating a new form or creating a new project with only a
new form results in the same behavior. Opening a working project like a quick
start from the MS Enterprise Library also has the same behavior. Oddly, I
have one old test project with a single form and one button that opens and I
have no idea why. I found it just now. When I open third pary sample projects
or new projects I create myself I can not view any forms (tried maybe 8 3rd
party and 4 of my own).

I've been working for weeks exclusively in aspx, ascx, and non-UI code and
had not noticed this so I don't know when it started. I wanted to make a
simple WinForms app to test some code and I noticed this.

I am a little worried that Vista x64 compatibility has finally done me in as
I have also had a lot of crash issues with Office 2007 on x64. I have no
issues with eitther on my x86 machine. I was just hoping someone would point
out something simple I have missed. Both machines built basically at the same
time with the same disks.

I am torn between rebuilding this (my primary machine) back to Vista x86 for
days of lost productivity or uninstall and reinstall all my development tools
for a day. I hope I am wrong about x64, but I don't have a warm feeling.
Aug 22 '07 #5
Can you post the code that is in the Form1.Designer.vb file? Since you do
have a seperate project that will open, I'm guessing the issue is somewhere
in the designer code.

Out of curiosity I have a question about the simple project that does open
properly. Was is possibly created in VS2003 and then converted to 2005?
The reason I ask is 2005 has the ability to split classes accross multiple
files and 2003 didn't - therefor there wasn't a *.designer.vb file.

Aug 22 '07 #6
You know what, I think you are on the right track actually.

<<can you post the code that is in the Form1.Designer.vb >>

Public Class Form1

End Class

(Note the complete absence of any designer code at all in the file. It was
created as if it was a normal empty class file. I also now note there is no
Form1.resx file out there either. This seems on the right track, but I don't
understand why I get the same message trying to open forms in other working
sample projects.)

<<Was is possibly created in VS2003 >>

No, it was created about a month ago on the same system. It is the only file
in the project and has one button on the form. It has all the normal stuff in
the code behind file.

** It looks like my system was made worse by my repair attempt. In getting
ready to answer your question, I now see that all the templates are gone in
the 'Add Item' dialog. I now can not even add a new form in a project. Same
behavior for C# projects. Oddly, you still have the choices in the popup menu
for class and module, but if you pick those, they don't know what to do
because the item templates are missing.

These too things must be related, I was at least able to add a form BEFORE I
did the repair, it was just defective and apparently empty. After the repair,
I can now not even add a form. Neither explains inability to open forms in
sample projects.

It looks like I am headed for a re-install. It is an agonizing choice on
whether to rebuild the whole machine and abandon x64. That would at least get
me working in Robotics toolkit again. For now I have to switch to the 32 bit
machine to do that because the XNA toolkit is not x64 compatible.

I will google some more now focusing on the templates getting all FUBAR. I
hate the idea of a rebuild or reinstall.

Thanks for your help, that got me on the right track.
Aug 22 '07 #7
Yes, just to confirm. All the default templates were completely missing from
where they are supposed to be in the VS installation directory. For all
languages. That could not have been the original problem, because I would not
have been able to add forms.

I copied all the templates from a working installation and they now appear
in the IDE. I can create a form and it has the proper code file. But I can
still not open the designer. This is the code file:

<Global.Microsoft.VisualBasic.CompilerServices.Des ignerGenerated()_
Partial Class Form2
Inherits System.Windows.Forms.Form

'Form overrides dispose to clean up the component list.
<System.Diagnostics.DebuggerNonUserCode()_
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
Try
If disposing AndAlso components IsNot Nothing Then
components.Dispose()
End If
Finally
MyBase.Dispose(disposing)
End Try
End Sub

'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer

'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()_
Private Sub InitializeComponent()
components = New System.ComponentModel.Container
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.Text = "Form2"
End Sub
End Class
Aug 22 '07 #8
Your template code is identical to a new form2.designer on my machine ----
character for character ---- so it's not a problem with the template.

I really don't know what to say at this point.
Aug 22 '07 #9

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

Similar topics

4
by: Chuck | last post by:
I have a vs.net compact framework project created in 1.1 The forms are not able to be seen in the designer mode any more. If I go into the .vbdproj project file I see <File RelPath =...
6
by: Charles Kincaid | last post by:
I have a project that is working fine: Compiles fine, and runs fine. 13 forms and 3 modules, besides Assembly. It is a smart device (Pocket PC) app. Often some of my forms will NOT open in the...
1
by: sbelgrave | last post by:
First off. Hats off to MS to really doing a good job of major fixes on VS 2K5. It is really a lot better. I have begun using Master Pages with Themes but am a bit confused as to how to make the...
1
by: maya | last post by:
when I try to open .aspx files in VS 2003, I get this alert: The file could not be opened into the Web Forms designer Please correct the following error and then try loading it again: An...
14
by: padh.ayo | last post by:
Can C open (and keep open) two files at any given time? so, FILE *a, *b; a = fopen(argv, "r"); b = fopen(argv, "r"); ?
4
by: airwot4 | last post by:
Hi all, I'm sure this is simple to answer but I have built a project exited VB Express. When I go back into VB Express and open the project no files appear (but I can open them manually) and...
1
kwaxy
by: kwaxy | last post by:
Hey Frendz, I can upload files into MS Access database, but unable to upload files to MSSQL database using ASP, can anyone help me plz ????
0
by: Naga Mahesh | last post by:
Hi Folks, I am new to the Visual Basic. I am facing some problem with the ShellExcute API Call. I am unable to open the files in the Windows 2000 Server family OS, Where as same files are able...
1
by: brat33 | last post by:
I am working with a database created using Access 2007, but saved as a 2002-2003 version. My problem is....I have three users who need to access the database at the same time. One can open it in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.