Advertisement
filmee24

DotNetLib Locale Test

Feb 17th, 2013
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.80 KB | None | 0 0
  1. Imports DotNetLib.Common
  2.  
  3. Public Class Form1
  4.  
  5.     Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
  6.         LocalePath = Application.StartupPath & "\Locale\"
  7.         Initialize()
  8.  
  9.         AddHandler LocaleChanged, AddressOf Changed
  10.  
  11.         ComboBox1.Items.AddRange(AviableLocales)
  12.  
  13.         If Not ComboBox1.Items.Count = -1 Then
  14.             ComboBox1.SelectedIndex = 0
  15.         End If
  16.     End Sub
  17.  
  18.     Private Sub ComboBox1_SelectedIndexChanged(sender As System.Object, e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
  19.         SetLocale(ComboBox1.SelectedItem)
  20.     End Sub
  21.  
  22.     Private Sub Changed()
  23.         btn_checkforupdates.Text = [Get]("checkforupdates")
  24.         lbl_welcomeuser.Text = [Get]("welcomeuser")
  25.     End Sub
  26.  
  27. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement