Home All Groups Group Topic Archive Search About

Visual Studio beginner questions

Author
28 Aug 2006 10:04 PM
ericwan78
I created a new form, added a label and a picture box.  When I switched
to code view, it showed an empty class.

I thought the code should have a lot more content then an empty class.

=========

the book I am reading says that the module that contains the main
method can have its name changed to one different than the filename.
When I changed it and compiled, it showed an error saying the main
method can't be found.  So the book is wrong?




please give me some guidance on the two questions.  .

Author
28 Aug 2006 10:06 PM
Ken Halter
<ericwa***@yahoo.com> wrote in message
news:1156802689.523726.299820@i3g2000cwc.googlegroups.com...
> method can't be found.  So the book is wrong?
>

Which book? It's not a VB5/6 related book, is it? If so, it's firewood as
far as dotNet is concerned.


--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..
In Loving Memory - http://www.vbsight.com/Remembrance.htm
Author
28 Aug 2006 11:57 PM
GhostInAK
Hello ericwa***@yahoo.com,

If yer in 2003, the designer code is listed in a collapsable region near
the top of the class.  In 2005 The form code is contained in a secondary
file (formname.designer.vb) and can be viewed by hitting the + next to the
form in Solution Explorer.

==

The module name can change.. though you may need to set it up again in the
project properties.  For the mode part it is good practice to leave the module
name and the filename in sync.

-Boo

Show quoteHide quote
> I created a new form, added a label and a picture box.  When I
> switched to code view, it showed an empty class.
>
> I thought the code should have a lot more content then an empty class.
>
> =========
>
> the book I am reading says that the module that contains the main
> method can have its name changed to one different than the filename.
> When I changed it and compiled, it showed an error saying the main
> method can't be found.  So the book is wrong?
>
> please give me some guidance on the two questions.  .
>
Author
29 Aug 2006 2:52 PM
Robert Johnson
When asking for help Eric, it's helpful to include information about the
environment you are using VS 2003 or VS2005 etc.  That will help others to
help you with your questions..

Regards,
Robert
<ericwa***@yahoo.com> wrote in message
Show quoteHide quote
news:1156802689.523726.299820@i3g2000cwc.googlegroups.com...
>I created a new form, added a label and a picture box.  When I switched
> to code view, it showed an empty class.
>
> I thought the code should have a lot more content then an empty class.
>
> =========
>
> the book I am reading says that the module that contains the main
> method can have its name changed to one different than the filename.
> When I changed it and compiled, it showed an error saying the main
> method can't be found.  So the book is wrong?
>
>
>
>
> please give me some guidance on the two questions.  .
>