This thread is about /prog/ramming for /prog/rammers and /DPT/ers
What are you working on?
Name:
Anonymous2013-10-03 11:13
Report and hide this thread, it uses a forced image, the original is the Yuki image.
The reason why we use the Yuki image is because she has relevance to programming, while Asuka, Hatsune Miku, and most other forced images do not.
Also because of tradition, Yuki has been the face of daily programming threads for years, people who try to force a different image are just trolls trying to incite image wars, they should be reported.
If a Yuki thread hasn't been made already, make a new one.
We need consistency, report and hide non-Yuki DPT threads.
I can't seem to get this to work. Any ideas on how to fix it?
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles btnUserInput.Click
Dim strUserInput
Dim IntUserInput As Integer
Dim i As Integer
strUserInput = InputBox("Enter a positive integer value", "Input Needed", 10)
If strUserInput <> String.Empty Then
Try
IntUserInput = CInt(strUserInput)
If IntUserInput < 0 Then
MessageBox.Show("Negative numbers are not accepted.")
Exit Sub
End If
MessageBox.Show("Sum of Numbers", "The sum of numbers" & (i + IntUserInput), MessageBoxButtons.OK)
Catch ex As Exception
MessageBox.Show("Quantity amount must be numeric.")
End Try
Else
MessageBox.Show("Error, input valid number", "You must enter a positive integer value", MessageBoxButtons.OK)
Exit Sub
End If
>>61
Sorry, and when it executes, I enter a number in which is supposed to make a message box pop up giving me the sum of all integers from 1 to that input number.