﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-★Daniel's Blog★-文章分类-Visual Studio 2005</title><link>http://www.blogjava.net/Daniel2005/category/7302.html</link><description>URL:http://www.blogjava.net/Daniel2005</description><language>zh-cn</language><lastBuildDate>Thu, 21 Jun 2007 08:33:34 GMT</lastBuildDate><pubDate>Thu, 21 Jun 2007 08:33:34 GMT</pubDate><ttl>60</ttl><item><title>Error while trying to run project: Unable to start debugging on the web server. You do not have permission to debug the application. The URL for this project is in the Internet zone. Click Help for more information.</title><link>http://www.blogjava.net/Daniel2005/articles/125539.html</link><dc:creator>泌鲁沙夫</dc:creator><author>泌鲁沙夫</author><pubDate>Thu, 21 Jun 2007 05:35:00 GMT</pubDate><guid>http://www.blogjava.net/Daniel2005/articles/125539.html</guid><wfw:comment>http://www.blogjava.net/Daniel2005/comments/125539.html</wfw:comment><comments>http://www.blogjava.net/Daniel2005/articles/125539.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/Daniel2005/comments/commentRss/125539.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/Daniel2005/services/trackbacks/125539.html</trackback:ping><description><![CDATA[<h2><a id=viewpost_ascx_TitleUrl title="Title of this entry." href="http://geekswithblogs.net/ranganh/archive/2005/12/30/64446.aspx"><u><font color=#810081>"Unable to start debugging on the web server. You do not have permission to debug the application. The URL for this project is in the Internet zone." </font></u></a></h2>
<font face=Tahoma><font size=2><font color=#000080><span style="FONT-FAMILY: trebuchet ms">You may receive the error "Error while trying to run project: Unable to start debugging on the web server. You do not have permission to debug the application. The URL for this project is in the Internet zone. Click Help for more information."</span><br><span style="FONT-FAMILY: trebuchet ms"></span><br><span style="FONT-FAMILY: trebuchet ms">This is one of the various errors that appear when you are debugging and may haunt you until you do the following fix:-</span><br><span style="FONT-FAMILY: trebuchet ms"></span><br></font></font></font><font face=Tahoma><font size=2><font color=#000080><strong><span style="FONT-FAMILY: trebuchet ms">1. In the Internet Explorer, "Tools" Menu, select "Internet Options".</span><br><span style="FONT-FAMILY: trebuchet ms"></span><br><span style="FONT-FAMILY: trebuchet ms">2. Switch to "Security" Tab.</span><br><span style="FONT-FAMILY: trebuchet ms"></span><br><span style="FONT-FAMILY: trebuchet ms">3. Click on "Internet" (The Globe Icon. Its actually the default selected).</span><br><span style="FONT-FAMILY: trebuchet ms"></span><br><span style="FONT-FAMILY: trebuchet ms">4. Click on "Custom Level" in the bottom.</span><br><span style="FONT-FAMILY: trebuchet ms"></span><br><span style="FONT-FAMILY: trebuchet ms">5. Scroll down to find the "User Authentication" section.</span><br><span style="FONT-FAMILY: trebuchet ms"></span><br><span style="FONT-FAMILY: trebuchet ms">6. Select "Automatic logon with current username and password".</span><br><span style="FONT-FAMILY: trebuchet ms"></span><br><span style="FONT-FAMILY: trebuchet ms">7. Click "Ok" twice to exit.</span><br><span style="FONT-FAMILY: trebuchet ms"></span><br></strong><span style="FONT-FAMILY: trebuchet ms">This should solve the issue.</span><br><span style="FONT-FAMILY: Trebuchet MS"></span><br><span style="FONT-FAMILY: Trebuchet MS">Please note that this resolution is specific only if you get the exact error message as mentioned in the beginning of this article. </span><span style="FONT-FAMILY: Trebuchet MS">There are various reasons you get the "Unable to start debugging on the webserver". For a complete list of solutions, please check <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vsdebug.asp"><u><font color=#0000ff>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vsdebug.asp</font></u></a></span></font></font></font>
<img src ="http://www.blogjava.net/Daniel2005/aggbug/125539.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/Daniel2005/" target="_blank">泌鲁沙夫</a> 2007-06-21 13:35 <a href="http://www.blogjava.net/Daniel2005/articles/125539.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Visual Studio 2005入门</title><link>http://www.blogjava.net/Daniel2005/articles/31842.html</link><dc:creator>泌鲁沙夫</dc:creator><author>泌鲁沙夫</author><pubDate>Tue, 21 Feb 2006 10:29:00 GMT</pubDate><guid>http://www.blogjava.net/Daniel2005/articles/31842.html</guid><wfw:comment>http://www.blogjava.net/Daniel2005/comments/31842.html</wfw:comment><comments>http://www.blogjava.net/Daniel2005/articles/31842.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/Daniel2005/comments/commentRss/31842.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/Daniel2005/services/trackbacks/31842.html</trackback:ping><description><![CDATA[<H1>Visual Basic 2005 简介</H1>
<H2 class=subtitle></H2>
<DIV class=date>发布日期： 10/26/2005<SPAN class=datePipe> | </SPAN>更新日期： 10/26/2005</DIV>
<DIV class=overview></DIV>
<CENTER><IMG title="" height=6 alt=* src="http://thesource.ofallevil.com/library/gallery/templates/MNP2.Common/images/3squares.gif" width=30 border=0></CENTER>
<DIV style="HEIGHT: 18px"></DIV>
<H5 style="PADDING-TOP: 2px">本页内容</H5>
<TABLE style="MARGIN-TOP: 7px; MARGIN-BOTTOM: 12px" cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR vAlign=top>
<TD><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#EKAA"><IMG height=9 alt=本书的读者 hspace=4 src="http://thesource.ofallevil.com/library/gallery/templates/MNP2.Common/images/arrow_px_down.gif" width=7 vspace=2 border=0></A></TD>
<TD class=onThisPage><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#EKAA">本书的读者</A></TD></TR>
<TR vAlign=top>
<TD><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#EJAA"><IMG height=9 alt=本书的内容 hspace=4 src="http://thesource.ofallevil.com/library/gallery/templates/MNP2.Common/images/arrow_px_down.gif" width=7 vspace=2 border=0></A></TD>
<TD class=onThisPage><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#EJAA">本书的内容</A></TD></TR>
<TR vAlign=top>
<TD><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#EIAA"><IMG height=9 alt="第 2 章，“Visual Basic 2005 的语言增强功能”" hspace=4 src="http://thesource.ofallevil.com/library/gallery/templates/MNP2.Common/images/arrow_px_down.gif" width=7 vspace=2 border=0></A></TD>
<TD class=onThisPage><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#EIAA">第 2 章，“Visual Basic 2005 的语言增强功能”</A></TD></TR>
<TR vAlign=top>
<TD><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#EHAA"><IMG height=9 alt="第 3 章，“Visual Studio 2005 集成开发环境”" hspace=4 src="http://thesource.ofallevil.com/library/gallery/templates/MNP2.Common/images/arrow_px_down.gif" width=7 vspace=2 border=0></A></TD>
<TD class=onThisPage><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#EHAA">第 3 章，“Visual Studio 2005 集成开发环境”</A></TD></TR>
<TR vAlign=top>
<TD><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#EGAA"><IMG height=9 alt="第 4 章，“构建以数据为中心的应用程序”" hspace=4 src="http://thesource.ofallevil.com/library/gallery/templates/MNP2.Common/images/arrow_px_down.gif" width=7 vspace=2 border=0></A></TD>
<TD class=onThisPage><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#EGAA">第 4 章，“构建以数据为中心的应用程序”</A></TD></TR>
<TR vAlign=top>
<TD><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#EFAA"><IMG height=9 alt="第 5 章，“构造用户界面”" hspace=4 src="http://thesource.ofallevil.com/library/gallery/templates/MNP2.Common/images/arrow_px_down.gif" width=7 vspace=2 border=0></A></TD>
<TD class=onThisPage><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#EFAA">第 5 章，“构造用户界面”</A></TD></TR>
<TR vAlign=top>
<TD><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#EEAA"><IMG height=9 alt="第 6 章，“构建 Web 应用程序”" hspace=4 src="http://thesource.ofallevil.com/library/gallery/templates/MNP2.Common/images/arrow_px_down.gif" width=7 vspace=2 border=0></A></TD>
<TD class=onThisPage><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#EEAA">第 6 章，“构建 Web 应用程序”</A></TD></TR>
<TR vAlign=top>
<TD><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#EDAA"><IMG height=9 alt="第 7 章，“Microsoft .NET Framework 增强功能”" hspace=4 src="http://thesource.ofallevil.com/library/gallery/templates/MNP2.Common/images/arrow_px_down.gif" width=7 vspace=2 border=0></A></TD>
<TD class=onThisPage><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#EDAA">第 7 章，“Microsoft .NET Framework 增强功能”</A></TD></TR>
<TR vAlign=top>
<TD><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#ECAA"><IMG height=9 alt="第 8 章，“部署应用程序”" hspace=4 src="http://thesource.ofallevil.com/library/gallery/templates/MNP2.Common/images/arrow_px_down.gif" width=7 vspace=2 border=0></A></TD>
<TD class=onThisPage><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#ECAA">第 8 章，“部署应用程序”</A></TD></TR>
<TR vAlign=top>
<TD><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#EBAA"><IMG height=9 alt=支持 hspace=4 src="http://thesource.ofallevil.com/library/gallery/templates/MNP2.Common/images/arrow_px_down.gif" width=7 vspace=2 border=0></A></TD>
<TD class=onThisPage><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#EBAA">支持</A></TD></TR></TBODY></TABLE>
<P>开发人员的工作效率是这一版 Microsoft Visual Studio 发布的目标。不管您使用何种应用程序类型或者选择何种语言，Microsoft 一直致力于构建集成开发环境 (IDE)、类库和语言套件，以使构建和部署应用程序尽可能地简单。</P>
<P>我们（本书的作者）很明显地看到，Microsoft 已经考察了编码的各个方面（包括代码编写本身、调试和部署），而且实际分析了如何才能使这些工作更有效率。这些增强功能影响深远，其中包括 Microsoft Visual Basic .NET 语言本身的改变、IDE 的改进、数据访问和显示的简化，还有一些改变提高了开发人员构造专业用户界面的工作效率，向框架中添加的众许多新类也减少了您编写的代码的数量，同时提高了部署的功能并扩大了部署的简单性。</P>
<P>本书将深入分析这每一个方面。另外，虽然本书以构建桌面应用程序为重点，但大多数开发人员至少会进行一些 Web 开发。因此，第 6 章“构建 Web 应用程序”介绍 ASP.NET 中的一些最重要的改变。</P>
<P>本简介对这些主题进行概要介绍，并指出您可以从中获得更深层信息的特定章节。您可以通读本书，也可以直接跳到最感兴趣的章节。</P><A name=EKAA></A>
<H2>本书的读者</H2>
<P>本书为 Visual Basic 开发人员撰写。如果您是一名 Visual Basic 6 开发人员，您应该从第 1 章“面向 Visual Basic 开发人员的 Microsoft .NET Framework 入门指南”开始阅读，该章将带您快速进行 .NET Framework 开发。本书其余部分介绍 Visual Basic 的重要增强功能，这些增强功能可以提高开发应用程序的效率。</P>
<P>如果您已经是一名 .NET 开发人员，则可跳过第 1 章直接进入第 2 章“Visual Basic 2005 的语言增强功能”。</P>
<DIV style="MARGIN-TOP: 3px; MARGIN-BOTTOM: 10px"><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#top"><IMG height=9 alt=返回页首 src="http://thesource.ofallevil.com/library/gallery/templates/MNP2.Common/images/arrow_px_up.gif" width=7 border=0></A><A class=topOfPage href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#top">返回页首</A></DIV><A name=EJAA></A>
<H2>本书的内容</H2>
<P>本书包含八章。第一章“面向 Visual Basic 开发人员的 Microsoft .NET Framework 入门指南”对目前使用 Visual Basic 6 的开发人员最为有用。它介绍 .NET Framework 的开发。</P>
<P>本节对各章进行说明，并提供关于每个主题的介绍性信息。</P>
<P><B>重要事项</B>要运行本书中的示例，需要安装两个软件：Visual Studio 2005 和 SQL Server 桌面、开发人员版、企业版或桌面引擎版。SQL Server 2000 的安装应该带有 Northwind 示例数据库。代码示例位于 MSDN 上的 http://msdn.microsoft.com/vbasic/VB6Migration。</P>
<DIV style="MARGIN-TOP: 3px; MARGIN-BOTTOM: 10px"><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#top"><IMG height=9 alt=返回页首 src="http://thesource.ofallevil.com/library/gallery/templates/MNP2.Common/images/arrow_px_up.gif" width=7 border=0></A><A class=topOfPage href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#top">返回页首</A></DIV><A name=EIAA></A>
<H2>第 2 章，“Visual Basic 2005 的语言增强功能”</H2>
<P><B>本章介绍泛型、</B>My 对象和新的运算符。</P>
<P><B>泛型</B>.NET Framework 最重要的增强功能可能就是引入了<I>泛型</I>。使用泛型可很轻松地创建特定于所存储的对象类型的集合。</P><PRE class=codeSample>Dim customerDictionaryAs New Dictionary(Of String, Customer) 
customerDictionary.Add(currentCust.FullName, currentCust)
</PRE>
<P>本例中，customerDictionary只能存储 <I>Customer</I> 类型的项。而且，查找结果明确是一个 <I>String </I>值。因为该集合知道它所存储的对象类型（是 Customers 而不仅仅是“对象”），所以它可以提供完整的 Microsoft 智能感知，如下图所示。</P>
<DIV style="WIDTH: 416px"><IMG height=259 alt="" src="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/art/introduction_02.jpg" width=416 border=0><BR>
<P class=figureCaption><B>图</B><B> I-1 </B>泛型集合中的智能感知。</P>
<DIV class=figureRule></DIV></DIV>
<P><B>My Object</B> Visual Basic .NET 的另一个重要增强功能就是简称为“My 对象”的功能。该功能提供对强大功能相当快速而简单的访问。例如，My.Application.Log.WriteEntry 可让您将信息写入一个文本文件、事件日志或者其他目标。My.Computer.Audio.PlaySystemSound 可以让您播放预定义的操作系统声音，而 My.Computer.Audio.Play 可以让您播放任何 .wav 文件。My 对象还为项目中的项提供默认实例。例如，您可以使用 My.Forms.MainForm.Show 来显示一个窗体而无需先创建其实例。</P>
<P><B>新运算符</B>Visual Basic .NET 还包括很多新的关键字。IsNot 和 Nothing 一起使用可以使比较变得更加容易。过去，您通常必须编写 If Not X Is Nothing Then。现在，则这可以写成 If X IsNotNothing Then。Visual Basic .NET 还支持运算符重载、泛型，以及很多其他的高级编程功能。 </P>
<P>有关这些增强功能的详细信息，请参阅第 2 章“Visual Basic 2005 的语言增强功能”。</P>
<DIV style="MARGIN-TOP: 3px; MARGIN-BOTTOM: 10px"><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#top"><IMG height=9 alt=返回页首 src="http://thesource.ofallevil.com/library/gallery/templates/MNP2.Common/images/arrow_px_up.gif" width=7 border=0></A><A class=topOfPage href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#top">返回页首</A></DIV><A name=EHAA></A>
<H2>第 3 章，“Visual Studio 2005 集成开发环境”</H2>
<P>Visual Basic 开发一直以来都与工作效率相关，而提供这种工作效率的关键工具就是 Visual Studio。使用 Visual Studio 2005，可以全面提升工作效率，可以更好、更容易地导航帮助内容，实现更简单的开发环境自定义以及更高效的编码和调试体验，其中包括“编辑并继续 (Edit-And-Continue)”的重新引入。</P>
<P><B>编码和调试增强功能</B>当使用新的集成开发环境 (IDE) 时，您将看到为了在编码中加入“上下文”而做出的极大努力。即，在很多情况下，您不必导航到 IDE 中的其他窗口来获得需要的信息。在其他情况下，IDE 提供智能信息筛选功能，以便将最有可能的选择置于最突出的位置，并防止极少使用的选项干扰视图。在您第一次访问对象属性时可以看到该功能，如下图所示。</P>
<DIV style="WIDTH: 707px"><IMG height=280 alt="" src="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/art/introduction_03.jpg" width=707 border=0><BR>
<P class=figureCaption><B>图</B><B> I-2 </B>对象成员的渐进式显示。</P>
<DIV class=figureRule></DIV></DIV>
<P>您会发现，Visual Studio 2005 可以显示对象的所有成员，也可以通过筛选列表只显示最常用的成员，从而使您轻松找到所需的成员（例如，<I>Connection </I>的<I> String </I>属性）。</P>
<P>Visual Studio 2005 还进一步扩展了常见的 Visual Basic 代码展开功能。您已经习惯了在起始处键入 <I>Function </I>声明，然后让 IDE 自动插入 <I>End Function</I>。现在，这已经扩展到诸如属性声明这样的内容。键入 public property UserName as String并按 Enter 键可以自动插入下列代码：</P><PRE class=codeSample>Public Property UserName() As String 
Get 
End Get 
Set(ByVal value As String) 
End Set 
End Property
</PRE>
<P>Visual Studio 2005 还在调试时将各种信息置于您容易获得的位置，使您可以方便操作各种简单和复杂类型，而无需打开并浏览“Watch”窗口。下图显示如何直接在代码编辑器中显示一个复杂类型。 </P>
<DIV style="WIDTH: 547px"><IMG height=189 alt="" src="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/art/introduction_04.jpg" width=547 border=0><BR>
<P class=figureCaption><B>图</B><B> I-3 </B>就地显示复杂类型的属性。</P>
<DIV class=figureRule></DIV></DIV>
<P>Visual Basic 6 提供的最大的工作效率增强功能之一就是“编辑并继续”。该功能曾经是调试过程中的主要手段，遗憾的是，以前 Visual Studio .NET 2002 或 2003 中没有包括该功能。现在“编辑并继续”又可以使用了，使您可以修复错误然后继续执行，而不用停止和重新启动。</P>
<P><B>IDE</B><B>自定义和帮助系统增强功能</B>Visual Basic 开发人员高度评价了自定义其开发环境，以及将窗口置于对他们最有利位置的功能。Visual Studio 一直都提供这种功能，但是在 Visual Studio 2005 中，该功能在几个关键部分进行了重大增强。首先，Visual Studio 2005 解决了“我不知道该窗口将停靠在何处”这一问题 — 当发生该问题时，虽然您认为已经将窗口进行了正确定位，但是当您放开它时，窗口或者没有停靠，或者没有按照您预期的方式停靠。在 Visual Studio 2005 中，停靠具有“停靠指导”，如下图所示。</P>
<DIV style="WIDTH: 375px"><IMG height=460 alt="" src="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/art/introduction_05.jpg" width=375 border=0><BR>
<P class=figureCaption><B>图</B><B> I-4 </B>使用停靠指导。</P>
<DIV class=figureRule></DIV></DIV>
<P>您只需将窗口放置到合适的箭头上就可以实现将其停靠在另一个窗口正上方、上方、右方、下方或者左方的功能。不用再猜测！还有，您的所有 IDE 自定义结果都可以导出和导入。</P>
<P>另外，帮助系统有了很大的改进，为您提供了更好的“F1”体验，而且可以让您访问最新的联机帮助。帮助系统甚至挂接到 Web 站点的“Code Wise”社区，它提供直接在 IDE 中访问 CodeGuru、Net247 和 ASP.NET 等站点的功能。</P>
<P>有关 Visual Studio 2005 提供的重要工作效率增强功能的详细信息，您可以直接参阅第 3 章“Visual Studio 2005 集成开发环境”。</P>
<DIV style="MARGIN-TOP: 3px; MARGIN-BOTTOM: 10px"><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#top"><IMG height=9 alt=返回页首 src="http://thesource.ofallevil.com/library/gallery/templates/MNP2.Common/images/arrow_px_up.gif" width=7 border=0></A><A class=topOfPage href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#top">返回页首</A></DIV><A name=EGAA></A>
<H2>第 4 章，“构建以数据为中心的应用程序”</H2>
<P>Visual Studio 2005 附带很多用于构建以数据为中心的应用程序的强大工具。首先，有一些构建于 ADO.NET 1.0 之上的新对象。这包括一个类型化 DataAdapter 类，它使得调用存储过程像调用函数一样容易。该工具箱还包含一个很容易进行自定义和控制的新网格控件。最后，IDE 包含一个新的“Data Sources”窗口，帮助您管理这些对象以及在设计时创建您的用户界面。</P>
<P>“Data Sources”窗口用于生成您将在整个给定应用程序中使用的类型化 DataAdapter 和类型 DataSet。一旦您连接到数据库并选择了要使用的表和过程，那么只需将对象从“Data Sources”窗口拖到设计图面来创建用户界面，如下图所示。</P>
<DIV style="WIDTH: 511px"><IMG height=452 alt="" src="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/art/introduction_06.jpg" width=511 border=0><BR>
<P class=figureCaption><B>图</B><B> I-5 </B><B>通过</B><B>“Data Sources”</B><B>窗口生成用户界面。</B></P>
<DIV class=figureRule></DIV></DIV>
<P>您可以看到，默认情况下，当 customers 表放置于设计图面时，后者使用新的GridView控件来呈现它。您也可以让它呈现为单个字段，而且可以确定用于每个字段的控件类型。</P>
<P>您还可以使用 DataSet 设计器将方法映射到存储过程。这使得调用存储过程像下面的代码一样简单：</P><PRE class=codeSample>ds = MyDataSet.GetByCustomerID(customerID)
</PRE>
<P>有关在 Visual Studio 2005 中使用数据的详细信息，请参阅第 4 章“构建以数据为中心的应用程序”。</P>
<DIV style="MARGIN-TOP: 3px; MARGIN-BOTTOM: 10px"><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#top"><IMG height=9 alt=返回页首 src="http://thesource.ofallevil.com/library/gallery/templates/MNP2.Common/images/arrow_px_up.gif" width=7 border=0></A><A class=topOfPage href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#top">返回页首</A></DIV><A name=EFAA></A>
<H2>第 5 章，“构造用户界面”</H2>
<P><B>Visual Basic</B> 开发人员在快速构建用户界面方面从未遇到任何困难。如果 Visual Basic 在某一方面始终出类拔萃，那就是工具箱和窗体设计器方面。但是，Visual Basic 开发人员一直不断地要求，“给我们提供 Microsoft 在其应用程序中所使用的用户界面控件”。更具体地说，开发人员需要很多用户界面元素，例如 Microsoft Office 等产品中的漂浮工具栏。</P>
<P><B>新控件</B>您将高兴地了解到，此版本的 Visual Studio 不仅仅专注于有丰富素材的工具箱，它确实在努力地使构建专业水平的用户界面变得更容易，并且无需借助于第三方组件或进行大量的自定义控件开发。第 5 章分析的第一个控件是 ToolStrip，如下图所示。</P>
<DIV style="WIDTH: 300px"><IMG height=299 alt="" src="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/art/introduction_07.jpg" width=300 border=0><BR>
<P class=figureCaption><B>图</B><B> I-6 </B>MenuStrip、StatusStrip 和 ToolStrip。</P>
<DIV class=figureRule></DIV></DIV>
<P>您可以看到用两个 ToolStrip控件创建的一个简单窗体。这完全可以在几秒钟之内完成，但事实上还有一些内容需要讨论。首先，您可以看到 ToolStrip控件支持“漂浮”，即用户可在运行时拖动 <I>Tool- Strip </I>控件并对其进行排列。其次，最上方的 ToolStrip包含您所熟悉的标准图标。这些图标均通过一次单击添加。如果有一些您不想要的图标，只需选中它们然后按 Delete 键即可。ToolStrip不仅仅支持按钮。它还包含文本框、下拉列表、标签，等等。最后，该工具栏与 Microsoft Office 的工具栏极为相似，使得可以轻松构建具有专业外观的应用程序，用户会很自然地懂得如何使用这些应用程序。</P>
<P>菜单栏和状态栏构建于 ToolStrip基础结构之上，使您的菜单栏或状态栏具有各种各样的控件和功能。</P>
<P>在工具箱中，您还会发现 ActiveX Web 浏览器控件的完整 .NET 包装，这使得向应用程序中添加 Web 功能变得简单。该控件可用于显示基于 Web 的帮助或者将用户引向可以购买产品的页面。</P>
<P><B>现有控件的变化</B>在构建窗体时您最先注意到的事情之一就是<I>对齐线</I>，它可以在您构建用户界面时快速容易地对齐控件，如下图所示。</P>
<DIV style="WIDTH: 299px"><IMG height=298 alt="" src="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/art/introduction_08.jpg" width=299 border=0><BR>
<P class=figureCaption><B>图</B><B> I-7 </B>使用对齐线对齐控件。</P>
<DIV class=figureRule></DIV></DIV>
<P>当在设计图面上拖动控件时，您将看到对齐线而不是传统的网格，对齐线使完全对齐控件变得非常简单。对齐线使您能够对齐控件的边缘并且建议控件之间的适当间距。间距由新的 <I>Margin </I>控件属性控制。</P>
<P>许多控件还包含新的自动完成属性，能够让控件自动为文件名、URL、自定义列表或者其他来源提供建议。</P>
<P>有关构建专业用户界面和新的应用程序配置基础结构的详细信息，请参阅第 5 章“构造用户界面”。</P>
<DIV style="MARGIN-TOP: 3px; MARGIN-BOTTOM: 10px"><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#top"><IMG height=9 alt=返回页首 src="http://thesource.ofallevil.com/library/gallery/templates/MNP2.Common/images/arrow_px_up.gif" width=7 border=0></A><A class=topOfPage href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#top">返回页首</A></DIV><A name=EEAA></A>
<H2>第 6 章，“构建 Web 应用程序”</H2>
<P><B>Visual Studio</B> .NET 2002 和 2003 带来了 Web 开发的变革，较之于传统的 ASP，它们使 Web 开发人员的工作效率有了一个数量级的提高。ASP.NET 2.0 实现了再次提高。该产品团队的目标是将构建 Web 站点所需的代码量至少减少 70％。据说，当 Visual Studio 2005 发布时，该产品团队将很轻松达到这一目标。即使现在，许多站点无需编写代码即可构建完成。</P>
<P>使用 ASP.NET 1.0 和 1.1 版，您可以用声明的方式创建用户界面，但是您必须编写代码来连接到数据库，检索数据，然后将 UI 绑定到数据。在 ASP.NET 2.0 中有一些能够封装数据源的组件。这让您可以用声明的方式将网格连接到数据源（例如，SQL Server）。该绑定非常复杂。您必须更改数据并将更改推回数据库。此新功能也并非完全类似于过去设计时控件的“演示部件”。这些控件真正是按照 UI 外观完全可自定义的方式构造的，并且您可以通过编程或者声明的方式挂接到控件中。</P>
<P>Microsoft 还标识了一些关键方案，并将这些方案的基础结构内置到 .NET Framework。例如，ASP.NET 2.0 具有内置的成员身份和个性化的概念。成员身份是一个功能包，它提供了进行诸如登录、更改密码这样操作的公共控件。它还提供从后端数据库自动存储和检索信息的基础结构。最后，成员身份为您提供通过编程方式对用户进行操作的 API。</P>
<P>ASP.NET 还附带很多新控件以满足关键方案。例如，SiteMapPath控件提供内置的 Breadcrumb 功能，而 SiteMapDataSource使构建站点导航变得容易。母版页 (Master Page) 允许您定义页面某处的公共区，从而只改变内容区。缓存功能也进行了改进，现在可以针对每个用户来缓存数据。</P>
<P>有关 ASP.NET 2.0 的详细信息，请参阅第 6 章“构建 Web 应用程序”。</P>
<DIV style="MARGIN-TOP: 3px; MARGIN-BOTTOM: 10px"><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#top"><IMG height=9 alt=返回页首 src="http://thesource.ofallevil.com/library/gallery/templates/MNP2.Common/images/arrow_px_up.gif" width=7 border=0></A><A class=topOfPage href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#top">返回页首</A></DIV><A name=EDAA></A>
<H2>第 7 章，“Microsoft .NET Framework 增强功能”</H2>
<P><B>增强功能不仅限于开发环境。</B>基础框架本身也包含了一些重要改进。第 2 章描述的泛型，是在 .NET Framework 2.0 版中引入的一项重要增强功能和强大的语言功能。本章介绍基类库、控制台和安全性增强功能。 </P>
<P>.NET Framework 包含许多新类以进一步减少您需要编写的代码数量，并使向应用程序添加功能更加简单。StopWatch是一个新类，它可以轻松捕获所用时间的间隔。<I>Trace- Source </I>类在如何跟踪事件数据方面为您提供了更大的灵活性。<I>System</I>.NET命名空间包含一些重要增强功能，例如，允许 Ping IP 地址。现在，已有一个 Internet Explorer 完全托管的包装。System.XML在性能和功能方面都有了显著增强，而且现在还包括对 XQuery的支持。</P>
<P>有关这些新类、控制台以及安全性增强功能的详细信息，请参阅第 7 章“Microsoft .NET Framework 增强功能”。</P>
<DIV style="MARGIN-TOP: 3px; MARGIN-BOTTOM: 10px"><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#top"><IMG height=9 alt=返回页首 src="http://thesource.ofallevil.com/library/gallery/templates/MNP2.Common/images/arrow_px_up.gif" width=7 border=0></A><A class=topOfPage href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#top">返回页首</A></DIV><A name=ECAA></A>
<H2>第 8 章，“部署应用程序”</H2>
<P>使用 Visual Basic 6.0，部署应用程序通常需要构建 Windows 安装程序包。该过程是必要的，因为 Visual Basic 6.0 基于 COM 且应用程序在其正常运行之前通常需要注册很多 DLL。安装程序还将创建“Start”菜单快捷方式，安装数据库，或执行其他所需的任务。</P>
<P>.NET Framework 1.0 和 1.1 版提供更多的安装选项。首先，1.0 版支持常称为 XCOPY 部署的功能。这就意味着，可将简单的应用程序直接复制到硬盘并执行。之所以可以这样做，是因为 .NET DLL 不需要注册。1.0 版还支持称为无接触 (NO-Touch) 部署的功能 — 有时也称为“零冲击部署”（href-exes）。在这种部署方法中，只需将可执行应用程序放在 Web 服务器上即可。当浏览到该应用程序的 URL 时，它将下载并运行。最终得到一个易于部署 Web 应用程序的完整 Windows 应用程序。对于 .NET，即使您需要创建 Windows 安装程序包，那么完成该工作的过程也大大简化了，这是因为您不必担心 DLL 注册问题。</P>
<P>对于 Intranet 应用程序而言，许多人将无接触部署视为一个绝好的方法。通过一个简单的入口，您可以确保用户始终运行该应用程序的最新版本。对于 Visual Studio 2005，Microsoft 极大地增强了通过 Web 分发的应用程序的功能。首先，应用程序现在可以下载并完全安装。此功能创建了适当的“Start”菜单快捷方式，而且（更为重要的是）它使应用程序即使在您脱机时也能完全正常运行。</P>
<P>ClickOnce 应用程序也不要求您必须是管理员才能安装它们（Windows 安装程序包则刚好相反）。最后，ClickOnce 允许您“引导”所需的其他软件作为安装过程的一部分。例如，作为应用程序安装的一部分，ClickOnce 应用程序可以安装 MDAC 甚至 .NET Framework（如果需要）。 </P>
<P>有关 ClickOnce 的详细信息，请参阅第 8 章“部署应用程序”。</P>
<DIV style="MARGIN-TOP: 3px; MARGIN-BOTTOM: 10px"><A href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#top"><IMG height=9 alt=返回页首 src="http://thesource.ofallevil.com/library/gallery/templates/MNP2.Common/images/arrow_px_up.gif" width=7 border=0></A><A class=topOfPage href="http://thesource.ofallevil.com/china/msdn/library/langtool/vbnet/VisualBasic2005Introduction.mspx#top">返回页首</A></DIV><A name=EBAA></A>
<H2>支持</H2>
<P><B><I>我们做出了很大的努力以确保本书的准确性。</I></B>如果您遇到了问题，可以通过以下 Web 站点查看 Microsoft Press 为其书籍提供的勘误：<A href="http://www.microsoft.com/learning/support/" target=_blank>http://www.microsoft.com/learning/support/</A><I>。</I></P>
<P>如果您对本书或附带的光盘有任何疑问、评论或意见，请将它们发送到 Microsoft Press。</P>
<P><I>发送电子邮件至</I><I></I><A href="mailto:mspinput@microsoft.com" target=_blank>mspinput@microsoft.com</A></P>
<P>请将邮政信件发送到</P>
<P>MicrosoftPress</P>
<P>Attn: Introducing MicrosoftVisual Basic 2005 for Developers Editor</P>
<P>One MicrosoftWay</P>
<P>Redmond, WA 98052-6399</P>
<P>请注意，前面的地址不提供对软件产品本身的支持。要获得产品支持，请访问 <A href="http://support.microsoft.com/" target=_blank>http://support.microsoft.com</A>。</P>
<P>要直接连接到 Microsoft 知识库并输入与您问题有关的查询，请访问 <A href="http://support.microsoft.com/" target=_blank>http://support.microsoft.com</A>。</P><img src ="http://www.blogjava.net/Daniel2005/aggbug/31842.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/Daniel2005/" target="_blank">泌鲁沙夫</a> 2006-02-21 18:29 <a href="http://www.blogjava.net/Daniel2005/articles/31842.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>VB6.0中与Visual Studio 2005中App的区别！！</title><link>http://www.blogjava.net/Daniel2005/articles/29924.html</link><dc:creator>泌鲁沙夫</dc:creator><author>泌鲁沙夫</author><pubDate>Wed, 08 Feb 2006 06:31:00 GMT</pubDate><guid>http://www.blogjava.net/Daniel2005/articles/29924.html</guid><wfw:comment>http://www.blogjava.net/Daniel2005/comments/29924.html</wfw:comment><comments>http://www.blogjava.net/Daniel2005/articles/29924.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/Daniel2005/comments/commentRss/29924.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/Daniel2005/services/trackbacks/29924.html</trackback:ping><description><![CDATA[<H1 class=heading>App Object Property Equivalents</H1>
<DIV class=seeAlsoNoToggleSection id=sectionSection2>
<P>The following table lists all properties and methods of the Visual Basic 6.0 <B>App</B> object and their Visual Basic 2005 equivalents.</P>
<DIV class=labelheading><B></B></DIV>
<DIV class=tableSection>
<TABLE cellSpacing=2 cellPadding=5 width="100%">
<TBODY>
<TR>
<TH>Visual Basic 6.0 </TH>
<TH>Visual Basic 2005 Equivalent </TH></TR>
<TR>
<TD>
<P><B>Comments</B></P></TD>
<TD>
<P><?XML:NAMESPACE PREFIX = MSHelp NS = "http://msdn.microsoft.com/mshelp" /><MSHelp:link tabIndex=0 keywords="399cf8e4-65e7-4592-8a26-628cec405699">My.Application.Info.Description Property</MSHelp:link></P></TD></TR>
<TR>
<TD>
<P><B>CompanyName</B></P></TD>
<TD>
<P><MSHelp:link tabIndex=0 keywords="1777b130-a3d4-4c2a-b92e-1b1df55346f8">My.Application.Info.CompanyName Property</MSHelp:link></P></TD></TR>
<TR>
<TD>
<P><B>EXEName </B></P></TD>
<TD>
<P><MSHelp:link tabIndex=0 keywords="ced764ad-30c7-4236-9fba-4a6e45f4bfaf">My.Application.Info.AssemblyName Property</MSHelp:link></P></TD></TR>
<TR>
<TD>
<P><B>FileDescription</B></P></TD>
<TD>
<P><MSHelp:link tabIndex=0 keywords="89e7307a-3704-45df-9ec4-4460a47c6329">My.Application.Info.Title Property</MSHelp:link></P></TD></TR>
<TR>
<TD>
<P><B>HelpFile</B></P></TD>
<TD>
<P>New implementation. Use a <B>HelpProvider</B> component. For more information, see <A href="ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vbvers/html/f87518ab-65dd-4611-8bf8-ca2ac53aa4b9.htm">Help Support for Visual Basic 6.0 Users</A>.</P></TD></TR>
<TR>
<TD>
<P><B>HInstance</B></P></TD>
<TD>
<P><MSHelp:link tabIndex=0 keywords="M:System.Runtime.InteropServices.Marshal.GetHINSTANCE(System.Reflection.Module)">GetHINSTANCE</MSHelp:link></P></TD></TR>
<TR>
<TD>
<P><B>LegalCopyright</B></P></TD>
<TD>
<P><MSHelp:link tabIndex=0 keywords="fa0a761f-3b98-415f-9c54-96bd5e043638">My.Application.Info.Copyright Property</MSHelp:link></P></TD></TR>
<TR>
<TD>
<P><B>LegalTrademarks</B></P></TD>
<TD>
<P><MSHelp:link tabIndex=0 keywords="63e0059b-9c62-4291-9cea-4690d86a64e7">My.Application.Info.Trademark Property</MSHelp:link></P></TD></TR>
<TR>
<TD>
<P><B>LogEvent method</B></P></TD>
<TD>
<P><MSHelp:link tabIndex=0 keywords="a9627b95-e4d3-485b-9366-03a505c8bd71">WriteEntry Method (My.Application.Log and My.Log)</MSHelp:link></P></TD></TR>
<TR>
<TD>
<P><B>LogMode</B></P>
<P><B>LogPath</B></P></TD>
<TD>
<P>New implementation. For more information, see <MSHelp:link tabIndex=0 keywords="8bf4f047-22d6-48d6-aec5-93b98ad5b8e8">Logging Information from the Application</MSHelp:link>.</P></TD></TR>
<TR>
<TD>
<P><B>Major</B></P></TD>
<TD>
<P><MSHelp:link tabIndex=0 keywords="de0f6a34-8f33-46f1-8177-e7ef08a9b9d8">My.Application.Info.Version Property</MSHelp:link></P>
<DIV class=alert>
<TABLE cellSpacing=0 cellPadding=0 width="100%">
<TBODY>
<TR>
<TH align=left><IMG class=note alt=Note src="ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vbvers/local/note.gif"></IMG>Note </TH></TR>
<TR>
<TD>
<P>The format for version numbers is different in Visual Basic 2005. For more information, see <A href="ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vbvers/html/627e3c5a-b6c0-46e6-8660-b61500e11257.htm">Version Numbering for Visual Basic 6.0 Users</A>.</P></TD></TR></TBODY></TABLE></DIV></TD></TR>
<TR>
<TD>
<P><B>Minor</B></P></TD>
<TD>
<P><MSHelp:link tabIndex=0 keywords="de0f6a34-8f33-46f1-8177-e7ef08a9b9d8">My.Application.Info.Version Property</MSHelp:link></P>
<DIV class=alert>
<TABLE cellSpacing=0 cellPadding=0 width="100%">
<TBODY>
<TR>
<TH align=left><IMG class=note alt=Note src="ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vbvers/local/note.gif"></IMG>Note </TH></TR>
<TR>
<TD>
<P>The format for version numbers is different in Visual Basic 2005. For more information, see <A href="ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vbvers/html/627e3c5a-b6c0-46e6-8660-b61500e11257.htm">Version Numbering for Visual Basic 6.0 Users</A>.</P></TD></TR></TBODY></TABLE></DIV></TD></TR>
<TR>
<TD>
<P><B>NonModalAllowed</B></P></TD>
<TD>
<P>New implementation. This is a read-only property related to ActiveX .dll files. The common language runtime automatically manages this behavior.</P></TD></TR>
<TR>
<TD>
<P><B>OleRequestPendingMsgText</B></P>
<P><B>OleRequestPendingMsgTitle</B></P>
<P><B>OleRequestPendingTimeout</B></P>
<P><B>OleServerBusyMsgText</B></P>
<P><B>OleServerBusyMsgTitle</B></P>
<P><B>OleServerBusyRaiseError</B></P>
<P><B>OleServerBusyTimeout</B></P></TD>
<TD>
<P>No equivalent. These properties relate to OLE automation, which is not supported by Visual Basic 2005.</P></TD></TR>
<TR>
<TD>
<P><B>Path</B></P></TD>
<TD>
<P><MSHelp:link tabIndex=0 keywords="660586b9-638e-42a7-ae21-5eee34a3fccf">My.Application.Info.DirectoryPath Property</MSHelp:link></P></TD></TR>
<TR>
<TD>
<P><B>PrevInstance</B></P></TD>
<TD>
<P><MSHelp:link tabIndex=0 keywords="P:Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.IsSingleInstance">IsSingleInstance</MSHelp:link></P>
<DIV class=alert>
<TABLE cellSpacing=0 cellPadding=0 width="100%">
<TBODY>
<TR>
<TH align=left><IMG class=note alt=Note src="ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vbvers/local/note.gif"></IMG>Note </TH></TR>
<TR>
<TD>
<P>The <B>IsSingleInstance</B> property is a <B>Protected</B> property. It can only be set at design time in the <B>Project Designer</B> by checking or clearing the <B>Multiple Instance</B> check box.</P></TD></TR></TBODY></TABLE></DIV></TD></TR>
<TR>
<TD>
<P><B>ProductName</B></P></TD>
<TD>
<P><MSHelp:link tabIndex=0 keywords="d57953d5-4724-4935-a62e-e400ac029215">My.Application.Info.ProductName Property</MSHelp:link></P></TD></TR>
<TR>
<TD>
<P><B>RetainedProject</B></P></TD>
<TD>
<P>New implementation. Visual Basic 2005 cannot retain a project in memory.</P></TD></TR>
<TR>
<TD>
<P><B>Revision</B></P></TD>
<TD>
<P><MSHelp:link tabIndex=0 keywords="de0f6a34-8f33-46f1-8177-e7ef08a9b9d8">My.Application.Info.Version Property</MSHelp:link></P>
<DIV class=alert>
<TABLE cellSpacing=0 cellPadding=0 width="100%">
<TBODY>
<TR>
<TH align=left><IMG class=note alt=Note src="ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vbvers/local/note.gif"></IMG>Note </TH></TR>
<TR>
<TD>
<P>The format for version numbers is different in Visual Basic 2005. For more information, see <A href="ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_vbvers/html/627e3c5a-b6c0-46e6-8660-b61500e11257.htm">Version Numbering for Visual Basic 6.0 Users</A>.</P></TD></TR></TBODY></TABLE></DIV></TD></TR>
<TR>
<TD>
<P><B>StartLogging method</B></P></TD>
<TD>
<P>New implementation. For more information, see <MSHelp:link tabIndex=0 keywords="8bf4f047-22d6-48d6-aec5-93b98ad5b8e8">Logging Information from the Application</MSHelp:link>.</P></TD></TR>
<TR>
<TD>
<P><B>StartMode</B></P></TD>
<TD>
<P>No equivalent. This property concerns creating ActiveX components, which is not supported in Visual Basic 2005.</P></TD></TR>
<TR>
<TD>
<P><B>TaskVisible</B></P></TD>
<TD>
<P>New implementation. To create an application that does not appear in the <B>Task Manager</B>, create a <B>Windows Service</B> or <B>Console Application</B> project.</P></TD></TR>
<TR>
<TD>
<P><B>ThreadID</B></P></TD>
<TD>
<P>New implementation. This property returned the ID of the executing thread; the threading model is significantly different in Visual Basic 2005.</P></TD></TR>
<TR>
<TD>
<P><B>Title</B></P></TD>
<TD>
<P><MSHelp:link tabIndex=0 keywords="89e7307a-3704-45df-9ec4-4460a47c6329">My.Application.Info.Title Property</MSHelp:link></P></TD></TR>
<TR>
<TD>
<P><B>UnattendedApp</B></P></TD>
<TD>
<P>New implementation. For unattended applications in Visual Basic 2005, create a <B>Console Application</B> project.</P></TD></TR></TBODY></TABLE></DIV></DIV><img src ="http://www.blogjava.net/Daniel2005/aggbug/29924.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/Daniel2005/" target="_blank">泌鲁沙夫</a> 2006-02-08 14:31 <a href="http://www.blogjava.net/Daniel2005/articles/29924.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>