5/27/2018

Vb.net Program Version

Vb.net Program Version

I have a VB.NET application that is deployed to an end user. I would like to display on screen the application version of the application so that I know. Automatically display your application version in. VB.NET questions; SQL. Form in every solution u want. When the program is running it knows its version itself.

Vb.net Program Version

Tutorial: We can do basic Registry operations via Microsoft.Win32.Registry class. 1) Creating a Subkey Imports Microsoft.Win32 Public Class Form1 Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim regKey As RegistryKey regKey = Registry.LocalMachine.OpenSubKey( 'SOFTWARE', True) regKey.CreateSubKey( 'MyApp') regKey.Close() End Sub End Class The code sample creates a subkey called MyApp under HKLM Software. Note that the second parameter True is used to indicate whether the key is writable.

You can set it to false if you are just reading data from the registry. Fuzzbuster Elite User Manual. 2) Reading and writing values Imports Microsoft.Win32 Public Class Form1 Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim regKey As RegistryKey Dim ver As Decimal regKey = Registry.LocalMachine.OpenSubKey( 'Software MyApp', True) regKey.SetValue( 'AppName', 'MyRegApp') ver = regKey.GetValue( 'Version', 0.0) If ver.