从App到Application (CSDN)

来源:互联网 发布:shadow defender 知乎 编辑:程序博客网 时间:2024/05/21 06:40
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
VB6升级到VB.NET,App变成了Application

   很多人不清楚这方面的变化,现在简单列举如下:

Imports System.Reflection.Assembly

Imports System.Diagnostics.FileVersionInfo

App.Path
Application.StartupPath

App.Title
  GetExecutingAssembly.GetName.Name

App.ExeName
  GetExecutingAssembly.Location

App.Major
  GetVersionInfo(GetExecutingAssembly.Location).ProductMajorPart

App.Minor
  GetVersionInfo(GetExecutingAssembly.Location).ProductMinorPart

App.Revision
  GetVersionInfo(GetExecutingAssembly.Location).ProductBuildPart

App.LegalCopyrights
GetVersionInfo(GetExecutingAssembly.Location).LegalCopyright

App.LegalTrademarks
GetVersionInfo(GetExecutingAssembly.Location).LegalTrademarks

App.CompanyName
GetVersionInfo(GetExecutingAssembly.Location).CompanyName


App到Application (CSDN)';return true">
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
原创粉丝点击