Results 1 to 13 of 13

Thread: Can't see design view mode in Visual studio 2008?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2007
    Posts
    788

    Can't see design view mode in Visual studio 2008?

    How can I get back the design view mode in Visual Studio 2008? I closed the design view mode and I can't see any option to view my form in design mode.

    Please do help.

  2. #2
    Frenzied Member mickey_pt's Avatar
    Join Date
    Sep 2006
    Location
    Corner of the Europe :)
    Posts
    1,959

    Re: Can't see design view mode in Visual studio 2008?

    Double click in the form in the Solution Explorer

    or Right Click in the form and Select Designer...

    Rate People That Helped You
    Mark Thread Resolved When Resolved

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    May 2007
    Posts
    788

    Re: Can't see design view mode in Visual studio 2008?

    Quote Originally Posted by mickey_pt View Post
    Double click in the form in the Solution Explorer

    or Right Click in the form and Select Designer...
    Double click also shows the form in code view and there is no Design option in right click.

  4. #4
    PowerPoster
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,070

    Re: Can't see design view mode in Visual studio 2008?

    Are the Formname.Designer.vb file and the Formname.resx file still 'attached' to the Formname.vb file? If you don't see those files, then click the 'Show All Files' button in the solution explorer toolbar, and expand the Formname.vb entry.

    In fact, can you enable the Show All Files button and show us a screenshot of your solution explorer?

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    May 2007
    Posts
    788

    Re: Can't see design view mode in Visual studio 2008?

    Quote Originally Posted by NickThissen View Post
    Are the Formname.Designer.vb file and the Formname.resx file still 'attached' to the Formname.vb file? If you don't see those files, then click the 'Show All Files' button in the solution explorer toolbar, and expand the Formname.vb entry.

    In fact, can you enable the Show All Files button and show us a screenshot of your solution explorer?
    Yes. Those files are there. I can't attach any snapshot file here right now.

  6. #6
    PowerPoster
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,070

    Re: Can't see design view mode in Visual studio 2008?

    But are the files in the 'treeview dropdown' of the Formname.vb file, or are they on the same level?

    What you want is this:

    Sometimes, it 'breaks' and you get this:

    (Note, I artificially added a space to the names of these files to get it to 'break', as I don't know exactly how to reproduce it)

    When that happens, it seems VS has lost the connection of the files, and it doesn't know that Form1.vb is a Form (because that information is in the Form1.Designer.vb file!).

    To fix, usually it is enough to remove the files from your project (be sure to back them up somewhere first otherwise you may delete the actual files!) and then simply add the Form1.vb file again. The other two files will be found automatically and it will be fixed.


    If that doesn't work then something else is going on, I've no idea what.

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    May 2007
    Posts
    788

    Re: Can't see design view mode in Visual studio 2008?

    Quote Originally Posted by NickThissen View Post
    But are the files in the 'treeview dropdown' of the Formname.vb file, or are they on the same level?

    What you want is this:

    Sometimes, it 'breaks' and you get this:

    (Note, I artificially added a space to the names of these files to get it to 'break', as I don't know exactly how to reproduce it)

    When that happens, it seems VS has lost the connection of the files, and it doesn't know that Form1.vb is a Form (because that information is in the Form1.Designer.vb file!).

    To fix, usually it is enough to remove the files from your project (be sure to back them up somewhere first otherwise you may delete the actual files!) and then simply add the Form1.vb file again. The other two files will be found automatically and it will be fixed.


    If that doesn't work then something else is going on, I've no idea what.
    I tried it copying again to my project after deleting. But the same problem exist.

  8. #8
    PowerPoster
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,070

    Re: Can't see design view mode in Visual studio 2008?

    You still didn't answer my question. Are the files in situation 1 or 2? And what do you mean by copying the files? You don't copy them into the project, you use Add Existing Item. I'm not sure if copying works too (it might), but I advice you to try Add Existing Item instead.

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    May 2007
    Posts
    788

    Re: Can't see design view mode in Visual studio 2008?

    Quote Originally Posted by NickThissen View Post
    You still didn't answer my question. Are the files in situation 1 or 2? And what do you mean by copying the files? You don't copy them into the project, you use Add Existing Item. I'm not sure if copying works too (it might), but I advice you to try Add Existing Item instead.
    It is in situation 1. I have added it as an existing item. Though the problem is same.

  10. #10
    New Member
    Join Date
    Nov 2011
    Posts
    1

    Re: Can't see design view mode in Visual studio 2008?

    As you described, I think you have declared some Namespace in file .vb but forgot to declare the same Namespace in file .Designer.vb. They must be in the same Namespace to work properly.

    For example:
    - In Form1.vb:
    Namespace NameSpace1
    Public Class Form1
    ....
    End Class
    End Namespace

    - In Form1.Designer.vb:
    Namespace NameSpace1
    <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
    Partial Class Form1
    Inherits System.Windows.Forms.Form
    ....
    End Class
    End Namespace

  11. #11
    PowerPoster Radjesh Klauke's Avatar
    Join Date
    Dec 2005
    Location
    Sexbierum (Netherlands)
    Posts
    2,244

    Re: Can't see design view mode in Visual studio 2008?

    Perhaps it makes life easier for everyone when you told us exactly what you did before this happened.


    If you found my post helpful, please rate it.

    Codebank Submission: FireFox Browser (Gecko) in VB.NET, Load files, (sub)folders treeview with Windows icons

  12. #12
    New Member
    Join Date
    Mar 2018
    Posts
    1

    Talking Re: Can't see design view mode in Visual studio 2008? [POSTED MARCH 13TH OF 2018]

    Quote Originally Posted by nguyenwu7 View Post
    As you described, I think you have declared some Namespace in file .vb but forgot to declare the same Namespace in file .Designer.vb. They must be in the same Namespace to work properly.

    For example:
    - In Form1.vb:
    Namespace NameSpace1
    Public Class Form1
    ....
    End Class
    End Namespace

    - In Form1.Designer.vb:
    Namespace NameSpace1
    <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
    Partial Class Form1
    Inherits System.Windows.Forms.Form
    ....
    End Class
    End Namespace
    THIS ****ING WORKED GUYSSSSS!!!!!!!!! USE THIS AS YOUR EXAMPLE. YOU JUST HELPED THE CRAP OUT OF ME. THIS WORKS!!!!!!!! I HAVE VISUAL STUDIO 2018/2017

    I ACCIDENTLY ERASED THE NAMESPACE INFORMATION OF MY .VB FILE, AND ONCE I CODED THE SIMPLE TWO LINES ABOVE

    Public Class [insert name of your .vb file!]

    End class

    THATS WHAT DID IT. THE FILE WAS CONVERTED TO A FORM, AND THE VISUAL DESIGNER WAS ENABLED WITH ALL MY SETTINGS AND CLASSES AND BUTTONS, AND EVERYTHING HOW IT WAS. THANK YOU SO MUCH

  13. #13
    Sinecure devotee
    Join Date
    Aug 2013
    Location
    Southern Tier NY
    Posts
    6,582

    Re: Can't see design view mode in Visual studio 2008? [POSTED MARCH 13TH OF 2018]

    Normally you shouldn't be opening that file in the editor, so you wouldn't accidentally erase anything in it, except through the IDE itself you might delete code you added, but not code that was auto generated.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width