📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

REALLY basic Visual Basic Express query

esuhl
esuhl Posts: 9,409
Part of the Furniture 1,000 Posts Name Dropper
Forumite
I'm embarrassed to ask this, but I've just opened a saved Visual Basic Express project for the first time... how do I see the design-layout of the main form I created?

I've tried double-clicking the form icon in the Solution Explorer, and the code view opens. I've right-clicked the icon and chosen "Open", and still the code view remains.

If I click the Start Debugging (play) icon, the form appears - so I know it's there somewhere! I've looked everywhere in the menus and help and still can't work out how to get to the design view!

I opened the project by double-clicking the file below... I assume that's the right one...?

C:\My Documents\Visual Studio 2008\Projects\ProjectName\ProjectName\ProjectName.vbproj

Many thanks in advance (and sorry to ask such dumb questions!)

Comments

  • noojam55
    noojam55 Posts: 39 Forumite
    Been a while but when you see the code you should see a tab above it with a link to <YOUR FORM NAME> [Design] and <YOUR FORM NAME> [Code]. Just click on the tab.

    It's changed from VB6 where you could right click.

    This link from MS should help: http://msdn.microsoft.com/en-us/beginner/aa718409.vb_ide.gif
  • esuhl
    esuhl Posts: 9,409
    Part of the Furniture 1,000 Posts Name Dropper
    Forumite
    Thanks, noojam55, but I just have three tabs: Start Page, ProjectName, and frmMain.vb. I don't have a tab labelled "frmMain.vb [Design]"...

    Oh, hang on - I've just realised what I've done! I hadn't actually written any code myself, and must've inadvertently deleted the class definition that is created when you add a new form:
    Public Class frmMain
    
    End Class
    

    I typed this in to the code window, and as if by magic, the design view tab re-appeared! Woo-hoo!
This discussion has been closed.
★ ★ ★ Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 355.9K Banking & Borrowing
  • 255K Reduce Debt & Boost Income
  • 456.2K Spending & Discounts
  • 248.4K Work, Benefits & Business
  • 606.1K Mortgages, Homes & Bills
  • 179.1K Life & Family
  • 264K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.2K Discuss & Feedback
  • 37.7K Read-Only Boards
Quick Search

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.