We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 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 Forumite
Part of the Furniture 1,000 Posts Name Dropper
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 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    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
  • 352.5K Banking & Borrowing
  • 253.7K Reduce Debt & Boost Income
  • 454.5K Spending & Discounts
  • 245.5K Work, Benefits & Business
  • 601.5K Mortgages, Homes & Bills
  • 177.6K Life & Family
  • 259.5K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16K Discuss & Feedback
  • 37.7K Read-Only Boards

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.