Cannot open existing form in Designer HELP! - VB 2005 Express Edition Beta  
Author Message
GoingGreyFast





PostPosted: Visual Basic IDE, Cannot open existing form in Designer HELP! - VB 2005 Express Edition Beta Top

This is so aggravating because I'm sure it's a simple thing!

Using the new Visual Basic 2005 Express Edition Beta.

Created a project, form, controls, etc.  Worked great.  Love it, compiled perfectly.

Saved everything, closed the program, went to bed.  

Woke up, opened the project, but now CAN NOT open the form (form1.vb) in Designer mode!!  I can open the code, it's all there, exactly as I left it, but cannot get back to the designer mode to (easily) add more controls to it!

F7 just opens the code, right-click just gives me code option, not designer option.

This is amazingly frustrating...what am I doing wrong  

Thank you!

Laura - GoingGreyFast


Visual Basic3  
 
 
HuyN_MS





PostPosted: Visual Basic IDE, Cannot open existing form in Designer HELP! - VB 2005 Express Edition Beta Top

Sorry for the frustrating issue, it looks like Visual Basic Express is doing something wrong.

Would you please check:
- In Solution Explorer, does Form1.vb still has the 'Form' icon or a 'Code' icon associated with it
- In Solution Explorer, on the tool bar, there's a button called 'Show All Files' (second from the left). If you click that button, in the tree view, under Form1.vb, is there a Form1.designer.vb
- What type of project are you working on (I've found a similar bug with smart device project).
- Any error when you try to open the form designer

If everything looks fine but you still cannot open the project, feel free to email me your zipped project to investigate. (Remove online. from my display email).

Regards,


 
 
GoingGreyFast





PostPosted: Visual Basic IDE, Cannot open existing form in Designer HELP! - VB 2005 Express Edition Beta Top

Thanks for quick response :)

- In Solution Explorer, Form1.vb has a Code icon associated with it
- Yes, there is a Form1.designer.vb file - will only open up as code, also
- debugs fine - will create an .exe no problem
- No error when opening the form designer for a new form.  Created a new form (form2.vb), put just a blank text box on it, closed VB, re-opened, lets me open form2 no problem.  But form1 will not open in designer :(


- Last year, I created using Microsoft Access a program to assist me with hosting Karaoke shows - it holds links to all my songs, listings of my singers, handles the singing rotation, etc.  There are, of course, some shortcomings creating such a program in Access, and using a "proper" programing system I believe I can get around these shortcomings and create a program that does what I already do in Access and a lot more, all of it faster and cleaner, too (especially the hook into WinAmp to play the karaoke files).  So I started fooling around with VB to see if it would do what I want/need it to do, and I believe it can do so, if I can get past the dang learning curve!!  It is NOT all that intuitive! LOL!

So essentially, to start, what the project does at this time is simply a database - read directory listings, place paths/names of files into database, parsing file names into appropriate columns.  Still figuring out how to do all the simple database stuff, although it's pretty simple.  But if I can't even re-open a form in designer... grrr...

Will send zip'd project - thanks so much for your help!

Laura - GoingGreyFast


 
 
HuyN_MS





PostPosted: Visual Basic IDE, Cannot open existing form in Designer HELP! - VB 2005 Express Edition Beta Top

You could not open Form1 in the designer because your Form1.vb is empty. In Visual Studio 2005, Form1 will include:
- Form1.vb: Contains user code, the same way VB6 Form code looks like. However, this file must contain at least the declaration (Public Class Form1 ...) for the designer to understand and open the form. All the user code will go into this class as well. Did you delete Public Class Form1 ... in Form1.vb by any chances
- Form1.designer.vb: Contains designer code. This is where all the declaration of your controls go. Only the designer should change this file. If you notice, this file contains "Partial Public Class Form1", indicating it's a part of Class Form1 as well.
- Other Form1.xxx.resx files for localizable resources.

You should keep user code in Form1.vb and let the designer modifies Form1.designer.vb. I fixed your form to work in the designer and emailed it to you.

Have fun coding,



 
 
GoingGreyFast





PostPosted: Visual Basic IDE, Cannot open existing form in Designer HELP! - VB 2005 Express Edition Beta Top

Thank you SO much for your help!  I knew it was something simple!  I'm sure I didn't delete form1.vb... but being new to VB, anything is possible... although I'm sure I didn't delete it, I'm also sure the possibility of me doing something totally stupid by mistake is really high :)

Thanks again, so much!

Laura

 
 
Mike Perri





PostPosted: Visual Basic IDE, Cannot open existing form in Designer HELP! - VB 2005 Express Edition Beta Top

And the fix WAS
I'm having a similar issue, except I let the Upgrade wizard work a large VB6 project of mine. took 2+ hours and now I can't open ANY form with the designer! I can stare at the code all day, but when I try to Open (or use View Designer), I get a
No editor available message - on the .vb file. There IS a '.designer.vb' and a 'resX' module associated with these forms. The Form icon displays next to the form files.

Is there a bug in the Beta converter

I can open new projects, add forms and manipulate them (with the designer), just the upgraded projects are causing grief.

Thanks,
Mike

 
 
HuyN_MS





PostPosted: Visual Basic IDE, Cannot open existing form in Designer HELP! - VB 2005 Express Edition Beta Top

The fix, in Laura's case, was to add back "Public Class Form1 End Class" to her Form.

It looks like you're experiencing a different error. Would you please post the complete error message

I don't remember such a bug in the VB Upgrade Wizard in Beta 2. Is it OK if you post (or email me) one of your form's code (the .vb and .designer.vb) That would help.

Best regards,

 
 
Mike Perri





PostPosted: Visual Basic IDE, Cannot open existing form in Designer HELP! - VB 2005 Express Edition Beta Top

I responded in email - couldn't figure out how to attach here.
Let me know if the files won't come across in your email.

Thanks,
Mike


 
 
Mike Perri





PostPosted: Visual Basic IDE, Cannot open existing form in Designer HELP! - VB 2005 Express Edition Beta Top

Spoke too soon...email address invalid.
 
 
HuyN_MS





PostPosted: Visual Basic IDE, Cannot open existing form in Designer HELP! - VB 2005 Express Edition Beta Top

Hi,

As noted above, please remove online. from my email address.

Best regards,



 
 
Mike Perri





PostPosted: Visual Basic IDE, Cannot open existing form in Designer HELP! - VB 2005 Express Edition Beta Top

Duh... Idea resent to the correct address
 
 
HuyN_MS





PostPosted: Visual Basic IDE, Cannot open existing form in Designer HELP! - VB 2005 Express Edition Beta Top

Thanks Mike, I got your form.

I copied it into an existing Windows Form project, included it. I could then open it with the Windows Form Designer with no error. Would you please verify that on your machine as well

It looks like the project file is the one causing this issue. Do you mind mailing me the your project file (.vbproj)

Thank you for sharing the info with us.

Best regards,



 
 
Mike Perri





PostPosted: Visual Basic IDE, Cannot open existing form in Designer HELP! - VB 2005 Express Edition Beta Top

Yep, that's the one thing I didn't try. Tried it and the form did open.
I've emailed the project file. Hopefully, you can pick out what's wrong.

Thanks!
Mike

 
 
Gusti Satria





PostPosted: Visual Basic IDE, Cannot open existing form in Designer HELP! - VB 2005 Express Edition Beta Top

yeah. I had similar problem with my computer. I'm using Visual basic 6 enterprise edition. I cant open the designer of the form in my computer. when I tried to it always crashed suddenly. come up with the send and dont send menu then the program is closed. even if I only open the single form not the project it still crashed when I switch to the form view. I guess the problem is with the visual basic software or the system file. it was working nicely 3 days ago but it goes wrong last night. I didnt install any program at all during the time. could you suggest me how to fix this problem..

cheers

 
 
Keith Newman





PostPosted: Visual Basic IDE, Cannot open existing form in Designer HELP! - VB 2005 Express Edition Beta Top

I have the same problem (I think!), I can open Form1.vb and Form1.designer.vb in the solution explorer. It's possible that I may have inadvertently deleted the "Public Class Form1 End Class" that you refer to, as I can't see it anywhere. Can I just put this back in the form, and if so, exactly where does it need to go This is what is at the top of Form1.vb:

Public Class frmCalculator

Dim Direction As String

'Dim txtLeft As Single

Dim Result As Single

Thanks

Keith