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.
I give you what I have so far but it requires Visual Basic
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(); } } }
so you think you could help?
I am having the problem getting it to actually run properly
can u help me
@sami-21
@AuthenticationError
you must watch your GUI correctly wen using visual basic
Join our real-time social learning platform and learn together with your friends!