Hi there
I'm creating an invoice generator program, first the user must enter the number of products to diplay on a pdf file, below are my codes.
My proble is, this if statement does not run as expected
Private Sub Add_New_Order_Item_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim sNumber As String
Dim iNumber As Integer
sNumber = InputBox("Enter a number", "Numbers Only", iNumber)
If IsNumeric(iNumber = 1) Then
GroupBox1.Visible = True
ElseIf IsNumeric(iNumber = 2) Then
GroupBox1.Visible = True
GroupBox2.Visible = True
ElseIf IsNumeric(iNumber = 2) Then
GroupBox1.Visible = True
GroupBox2.Visible = True
GroupBox3.Visible = True
ElseIf IsNumeric(iNumber = 2) Then
GroupBox1.Visible = True
GroupBox2.Visible = True
GroupBox3.Visible = True
GroupBox4.Visible = True
ElseIf IsNumeric(iNumber = 2) Then
GroupBox1.Visible = True
GroupBox2.Visible = True
GroupBox3.Visible = True
GroupBox4.Visible = True
GroupBox5.Visible = True
else
msgbox("Enter only numbers from 1 to 5")
End If
End Sub