By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,215 Members | 1,936 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,215 IT Pros & Developers. It's quick & easy.

Visual Basic Express Edition

P: n/a
In Visual Basic 2005 Express Edition When I choose Console Application for
the project, the source code page automatically comes up with:
Module Module1

When I choose Windows Application, the page automatically comes up with
Public Class Form1

Why not Module in the Windows App page?

Also, ASP.NET Web Application is not one of the choices when choosing a new
project. Is there a way to add this?
Oct 3 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
For ASP.NET you'll need to use Visual Web Developer Express. Visual Basic
Express is for Windows application.

As for the reason my guess would be that most Windows application are
starting with a form but this is a just a suggestion (though note that to
enable the application framework that helps to show a startup screen, that
handles settings etc that you'll find in the project settings, the startup
objet needs to be a form).

Use whatever best fit your needs within those constraints (that is a form
unless you don't want this part in whihc case you can start your windows
application with whatever you want. Similary you can start a console
application with a class with sahred members instead of using a module if
you wish).

--
Patrice

"dancer" <da****@microsoft.coma écrit dans le message de news:
uR**************@TK2MSFTNGP02.phx.gbl...
In Visual Basic 2005 Express Edition When I choose Console Application for
the project, the source code page automatically comes up with:
Module Module1

When I choose Windows Application, the page automatically comes up with
Public Class Form1

Why not Module in the Windows App page?

Also, ASP.NET Web Application is not one of the choices when choosing a
new project. Is there a way to add this?


Oct 3 '07 #2

P: n/a
Thank you for replying, Patrice.
I put code in VB Express using Module and it worked fine. I transferred the
same code to VWD Express and received this error:
'Module' statements can occur only at file or namespace level

Do you have a thought on this?
"Patrice" <http://www.chez.com/scribe/wrote in message
news:e2**************@TK2MSFTNGP04.phx.gbl...
For ASP.NET you'll need to use Visual Web Developer Express. Visual Basic
Express is for Windows application.

As for the reason my guess would be that most Windows application are
starting with a form but this is a just a suggestion (though note that to
enable the application framework that helps to show a startup screen, that
handles settings etc that you'll find in the project settings, the startup
objet needs to be a form).

Use whatever best fit your needs within those constraints (that is a form
unless you don't want this part in whihc case you can start your windows
application with whatever you want. Similary you can start a console
application with a class with sahred members instead of using a module if
you wish).

--
Patrice

"dancer" <da****@microsoft.coma écrit dans le message de news:
uR**************@TK2MSFTNGP02.phx.gbl...
>In Visual Basic 2005 Express Edition When I choose Console Application
for the project, the source code page automatically comes up with:
Module Module1

When I choose Windows Application, the page automatically comes up with
Public Class Form1

Why not Module in the Windows App page?

Also, ASP.NET Web Application is not one of the choices when choosing a
new project. Is there a way to add this?



Oct 4 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.