当前位置:首页 > 网络编程 > 软件语言 > .NET > Chapter 2 Your First VB.NET(2)

Chapter 2 Your First VB.NET(2)

点击次数:46 次 发布日期:2008-11-06 08:07:09 作者:源代码网
源代码网推荐
广告载入中
Figure 2.3
源代码网推荐 The New Project dialog box.
源代码网推荐 If you examine the Visual Basic project types, you’ll see that many of them are dif-ferent
源代码网推荐 from what you are used to with VB6. Some of the major project types are
源代码网推荐 • Windows Application—This is a standard executable, in VB6 terminology. It is
源代码网推荐 the way to create applications with a Windows interface, using forms and con-trols.
源代码网推荐 This is as close to “your father’s VB” as you’ll get in VB.NET.
源代码网推荐 • Class Library—This project type allows you to create classes that will be used
源代码网推荐 in other applications. Think of it as similar to the COM components that you
源代码网推荐 have been building, which VB6 called the ActiveX DLL and ActiveX EXE pro-ject
源代码网推荐 types.
源代码网推荐 • Windows Control Library—This project type is for creating what used to be
源代码网推荐 called ActiveX controls. This type allows you to create new controls to be used
源代码网推荐 in Windows applications.
源代码网推荐 • Web Application—Goodbye, Visual InterDev. Goodbye, server-side, interpreted
源代码网推荐 scripting languages for Active Server Pages. Visual Basic now has Web
源代码网推荐 Application projects, which use ASP.NET to create dynamic Web applications.
源代码网推荐 These projects allow you to create HTML, ASP.NET, and VB files. You will
源代码网推荐 now code your Web applications using a powerful, event-driven model instead
源代码网推荐 of the request/response model.
源代码网推荐 • Web Service—If you’ve used VB6 to create COM components and then made
源代码网推荐 them available over HTTP with SOAP, you understand the concept of Web
源代码网推荐 Services. Web Service projects are components that you make available to
源代码网推荐 other applications via the Web; the underlying protocol is HTTP instead of
源代码网推荐 DCOM, and you pass requests and receive responses behind the scenes using
源代码网推荐 XML. Some of the major promises of Web Services are that they are all stan-dards-
源代码网推荐 based and are platform independent. Unlike DCOM, which was tied to a
源代码网推荐 COM (that is, Windows) infrastructure, Web Service projects can be placed on any platform that supports .NET, and can then be called by any application

源代码网推荐 using just the HTTP protocol.
源代码网推荐 • Web Control Library—As with Web Service projects, there’s no exact match
源代码网推荐 back in VB6 for the Web Control Library projects. Thanks to the new Web
源代码网推荐 Application projects in VB.NET, you can add controls to Web pages just as you
源代码网推荐 would in a standard Windows Application project, but VB.NET makes them
源代码网推荐 HTML controls at runtime. You can design your own controls that can then be
源代码网推荐 used by Web applications.
源代码网推荐 • Console Application—Many of the Windows administrative tools are still con-sole
源代码网推荐 (or command-line, or DOS) applications. Previously, you didn’t have a
源代码网推荐 good way to create console applications in VB, and instead had to rely on C .
源代码网推荐 Now, console applications are natively supported by VB.NET.
源代码网推荐 • Windows Service—As with console applications, there was no good way to
源代码网推荐 create Windows services in previous versions of VB. Windows services, of

源代码网推荐

源代码网供稿.
网友评论 (0)
会员中心
网络编程
本站推荐
网络编程之精华