VB6升級到VB.NET(1) App的變化 (轉)

worldblog發表於2008-01-06
VB6升級到VB.NET(1) App的變化 (轉)[@more@]

升級到(1)  App的變化
Montaque

  很多人不清楚這方面的變化,現在簡單列舉如下:

Imports System.Reflection.Assembly:namespace prefix = o ns = "urn:schemas--com::office" />

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

By Montaque


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10752043/viewspace-996650/,如需轉載,請註明出處,否則將追究法律責任。

相關文章