You are on page 1of 1

'Project: 'Purpose: 'Created by: 'Revised by: 'Changes: Option Explicit On Option Strict On Option Infer Off Public

Class mainForm

p417 #11 bonus project illustrates use of loops Cheril Grimmett on 10/9/13 Christopher Mann on 11-8-13 finished program

Private Sub exitButton_Click(sender As System.Object, e As System.EventArgs) Handles exitButton.Click Close() End Sub Private Sub enterButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles enterButton.Click Dim asterisks As String = "Y" Do Until asterisks.ToUpper = "N" For row As Integer = 1 To 3 For column As Integer = 1 To 5 asterisksLabel.Text += "*" Next asterisksLabel.Text += ControlChars.NewLine Next asterisks = InputBox("Enter Y if you would like to show the * again. Enter N if you would like to quit.", "Again?") Loop End Sub End Class

You might also like