Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. Imports System.IO
  2. Public Class Form1
  3.  
  4.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  5.         Me.TextBox1.ReadOnly = True
  6.         Me.ShowIcon = False
  7.         Me.MinimizeBox = False
  8.         Me.MaximizeBox = False
  9.     End Sub
  10.  
  11.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  12.         Me.ColorDialog1.ShowDialog()
  13.         Dim SaberColor = Me.ColorDialog1.Color
  14.         Dim HexValue = SaberColor.ToArgb.ToString("X")
  15.         Dim Address() As String = {"0x00A42A50 0x", "0x00A4BCC4 0x", "0x00A4F92C 0x", "0x00A3B818 0x"}
  16.         Dim Saber As Integer
  17.  
  18.         Saber = Me.ComboBox1.SelectedIndex
  19.  
  20.         TextBox1.Text = "#Lightsaber Color Mod (" + ComboBox1.Text + ")" + vbNewLine +
  21.                         ";FaT@L 3rRoR" + vbNewLine +
  22.                         ";-xUnLeasHeDx- LS Color" + vbNewLine +
  23.                         Address(Saber) + HexValue
  24.     End Sub
  25.  
  26.     Private Sub SaveAsTxtFileToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveAsTxtFileToolStripMenuItem.Click
  27.         Dim UserName As String = System.Environment.UserName 'Gets the username of the computer
  28.        
  29.         Dim TxtFile As StreamWriter = New StreamWriter("C:\Users\" + UserName + "\Desktop\LS Color.txt", True)
  30.  
  31.         Try
  32.             'Create TXT file
  33.             TxtFile.WriteLine()
  34.             TxtFile.Write(TextBox1.Text)
  35.             TxtFile.WriteLine()
  36.             TxtFile.Close()
  37.  
  38.             MsgBox("Text Document successfully created" + vbNewLine + vbNewLine + "(C:\Users\" + UserName + "\Desktop\LS Color.txt)", MessageBoxIcon.Information)
  39.         Catch ex As Exception
  40.             MsgBox("Text Document could not be created!", MessageBoxIcon.Error)
  41.         End Try
  42.     End Sub
  43. End Class