p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Stephens' Visual Basic Programming 24-Hour Trainer (http://p2p.wrox.com/forumdisplay.php?f=621)
-   -   Lesson 9: Initializing new forms? (http://p2p.wrox.com/showthread.php?t=88633)

killinger October 21st, 2012 05:59 PM

Lesson 9: Initializing new forms?
 
Hi, I'm having trouble working through lesson 9's step-by-step at the end. I'm also running VS2008 so I don't know if that is the problem, but here goes:

I'm trying to declare and initialize the form variables.

"Dim frmGettingThere as New GettingThereForm()"

I'm getting an error that says "Type 'GettingThereForm' is not defined." This applies for the three other forms created by this exercise.

I get the impression I'm supposed to define a class or something for this form (or maybe this works as intended in VS2010?) but the lesson does not say how.

Any help would be appreciated!

Rod Stephens October 21st, 2012 06:42 PM

Quote:

I get the impression I'm supposed to define a class or something for this form (or maybe this works as intended in VS2010?) but the lesson does not say how.
You're on the right track! In this project you need to add a couple of forms for the code to display as dialogs.

Open the Project menu and select Add Windows Form. Then use the Properties window to change the form's name to "GettingThereForm" and you should be all set.


All times are GMT -4. The time now is 09:27 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.