Quantcast

A community for students. Sign up today!

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

Tearz

  • one year 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
    • one year 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
    • one year 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
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    so you think you could help?

  4. Tearz
    • one year 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
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    can u help me

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

    @sami-21

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

    @AuthenticationError

  8. AuthenticationError
    • one year 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

Ask a Question
Find more explanations on OpenStudy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.