Wrox Programmer Forums
|
BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6
This is the forum to discuss the Wrox book Beginning Visual Basic 2005 by Thearon Willis, Bryan Newsome; ISBN: 9780764574016
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 24th, 2006, 11:58 AM
Registered User
 
Join Date: Sep 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Adding code question

Hi all,

I'm working through the book and am up to P190 (mid-way through the text editor app). Going well but one question.

The text says that a shortcut to opening the code editor is to right click on the form and select "View Code". This is fine, but I get a blank page code editor (without any of the class declaration stuff at the top). If I the section beginning
Code:
Public Property StatusText() as String....
to this page, I get an error when I run the project about not being in a namespace.

However, I can also get the code editor up by double clicking on one of the form controls. This brings up the editor but it has a few dozen lines of stuff in it that I'm not sure should be there or not. It starts off:

Code:
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class TextEditor
    Inherits System.Windows.Forms.Form

    'Form overrides dispose to clean up the component list.
    <System.Diagnostics.DebuggerNonUserCode()> _


Anyone know what both scenarios mean (blank code editor from right click view code, and full code editor with partial class from double clicking a form control)?

Thanks v much in advance.
Simon

 
Old October 5th, 2006, 02:25 PM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

Simon,

Are you using Visual Basic 2005? Have you customized the view in Solution Explorer to show all files? When you right click on the form and choose View Source for a blank form, all you should see is the class declaration. If none of this helps, reinstall VS.

Thearon





Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about adding references in vs2008 chobo2 C# 2008 aka C# 3.0 4 December 4th, 2008 07:13 PM
vba question on adding certain columns csilla Excel VBA 0 July 30th, 2008 05:25 AM
Question about error after adding serialization... davidd31415 BOOK: Ivor Horton's Beginning Visual C++ 2005 1 December 28th, 2006 04:58 AM
Adding Fields to a Text Box Question ausmoran BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 December 1st, 2005 06:15 PM
Adding banner to this code einarhansen Classic ASP Basics 0 November 29th, 2003 08:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.