Quezon City University: College of Computer Science and Information Technology
Quezon City University: College of Computer Science and Information Technology
INSTRUCTIONS:
1. Create a Windows Form program that will display the numbers from 1 to 1000. Your codes must
be less than 20 lines.
Source Code:
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
End Sub
End Class
2. Create a windows form program that will display the number from 1000 to 0. Your codes must
be less than 20 lines.
Source Code:
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
End Sub
End Class
Example:
Enter Number: ________ <- Textbox, for example, you are going to input multiplication table of 14
Source Code
Public Class MultiplicationTbl
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim num, res, inp As Integer
Dim final As String
inp = TextBox1.Text
TextBox2.Clear()
For num = 1 To 10
res = inp * num
TextBox2.AppendText(inp & "x" & num & "=" & res & Environment.NewLine)
Next
final = TextBox2.Text()
MessageBox.Show(final, "Multiplication Table", MessageBoxButtons.OK)
End Sub
End Class
Output