My little project here is that im trying ot make a "Script Generator" for a game. The script are used by the Admin on a server to change all the players guns to a certain type.
heres the GUI so far adn maybe it will help get my point across
now what i need it to do is:
the user selects the gun type or types form the 1 section
then types what message is to be displayed when he runs that script (txt file) in game, and select color of that message in the 2nd section.
then inputs a file name for the txt file, and pushes the generate button and that txt file will be put on desktop.
the format of the txt file needs to be in this format.
admin message (color user selcts from radio button) (Admin message user types in)
admin forceclass 1 (weapon user selected from checkbox)
admin forceclass 2 (weapon user selected from checkbox)
etc all the way to 1000
This i the Code i have so far, its able to name a txt file based on what the user puts in, and write 1 line of text, but i can't format it......
Private Sub btnDesktopgen1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDesktopgen1.Click Dim strAdminmessage, strFilename As String If (txtAdminmessage.Text.Length = 0) Then MessageBox.Show("You Must have an Admin Message.") txtAdminmessage.Focus() Exit Sub Else strAdminmessage = txtAdminmessage.Text End If If (txtFilename.Text.Length = 0) Then MessageBox.Show("You Must enter a File name.") txtFilename.Focus() Exit Sub Else strFilename = txtFilename.Text End If My.Computer.FileSystem.WriteAllText("D:\" & strFilename & ".txt", _ "Admin Message " & strAdminmessage & ".", True)
the problem is i can't get a new line of text to go underneth it
also im confused on how to make the checkboxes and radio buttons work, do i make If than statements or make them all strings? i have no idea
thx in advance
This post has been edited by Mattman4: 11 January 2008 - 07:53 PM