Can you help?
Private Sub btnHelp_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnHelp.Click
'Creates an array that will house the instructions
Dim instructArray() As String = {"Left key = left", "Right key = right", "Spacebar = shoot"}
'When the help button is clicked a list of instructions will appear
'Creates a new form
Dim Form2 As Form = New Form()
'Calls the form, showing it during runtime
Form2.Show()
'Creates a new list box that will show on the form during runtime
Dim lstHelp As New ListBox
'Adds the items from the array to the listbox
lstHelp.Items.Add(instructArray(0))
lstHelp.Items.Add(instructArray(1))
lstHelp.Items.Add(instructArray(2))
End Sub
This post has been edited by notacoder: 22 December 2009 - 01:29 PM

New Topic/Question
Reply




MultiQuote





|