Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

Tearz

  • 3 years ago

I need help Create a GUI application that prompts a user to enter an integer. When the user clicks a button, try to convert the user's entry to an integer and display a message indicating whether the user was successful.

  • This Question is Open
  1. Tearz
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    I give you what I have so far but it requires Visual Basic

  2. Tearz
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace ExceptionHandlingDemoGUI { public class Form1 : Form { public Form1() {Private Sub EvaluateInput() Dim InputValue As String InputValue = ValueTextBox.Text If IsNumeric(InputValue) Then MessageBox.Show(InputValue & " is a number.") Else MessageBox.Show(InputValue & " is not a number.") End If End Sub Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) _ Handles Button2.Click 'Continue Button EvaluateInput() End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs Handles Button1.Click 'Exit Button Dim button As DialogResult button = MessageBox.Show _ ("Are you sure you want to exit this application?", _ "Message", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1) If button = Windows.Forms.DialogResult.Yes Then Me.Close() Else 'Do Nothing End If End Sub End Class InitializeComponent(); } } }

  3. Tearz
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    so you think you could help?

  4. Tearz
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    I am having the problem getting it to actually run properly

  5. Tearz
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    can u help me

  6. walters
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    @sami-21

  7. AuthenticationError
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    @AuthenticationError

  8. AuthenticationError
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    you must watch your GUI correctly wen using visual basic

  9. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy