ComponentSpace Professional .NET and ActiveX components for developers
ComponentSpace Home | Products | Downloads | Support | Purchase | Services | About Us
 

Code Samples

The product includes numerous Visual Basic sample applications. All samples include complete source code. For more detailed sample code please refer to the sample applications.


Control Panel Applet

Listing 1 shows a very simple control panel applet.



' Access the file version information for the file
FileVersionInfo.FileName = "myapp.exe"

Dim text As String
    
text = FileVersionInfo.FileDescription
text = FileVersionInfo.FileVersion

text = FileVersionInfo.ProductName
text = FileVersionInfo.ProductVersion

text = FileVersionInfo.CompanyName
text = FileVersionInfo.LegalCopyright
text = FileVersionInfo.LegalTrademarks
text = FileVersionInfo.Comments
									

Listing 1 Control panel applet