VB.Net Tutorial/Development/Application — различия между версиями

Материал из VB Эксперт
Перейти к: навигация, поиск
м (1 версия)
 
(нет различий)

Версия 16:40, 26 мая 2010

Application: CompanyName, ProductName, ProductVersion

Imports System.Windows.Forms
public class Test
   public Shared Sub Main
        Console.WriteLine(Application.rupanyName)
        Console.WriteLine(Application.ProductName)
        Console.WriteLine(Application.ProductVersion)
   End Sub
End class
Test
Test
0.0.0.0

Application.ExecutablePath, Application.StartupPath)

Imports System.Windows.Forms
Public Class Tester
    Public Shared Sub Main
    
        Console.WriteLine(Application.ExecutablePath)
        Console.WriteLine(Application.StartupPath)
    End Sub
End Class
C:\Java_Dev\WEB\dev\VB\main.exe
C:\Java_Dev\WEB\dev\VB

My.Application.Info

public class Test
   public Shared Sub Main
        Console.WriteLine(My.Application.Info.rupanyName)
        Console.WriteLine(My.Application.Info.Description)
        Console.WriteLine(My.Application.Info.Copyright)
        Console.WriteLine(My.Application.Info.Trademark)
        Console.WriteLine(My.Application.Info.DirectoryPath)
        Console.WriteLine(My.Application.Info.ProductName)
        Console.WriteLine(My.Application.Info.Title)
        Console.WriteLine(My.Application.Info.Version.ToString)
   End Sub
End class
C:\Java_Dev\WEB\dev\VB

0.0.0.0