vb.net - Click Button Event in VB that displays a message about user input -
I have a very quick and simple question, I am learning programming in C # and VB and I want to make it Required GUI application in Windows Form with Visual Studio will prompt this GUI to enter the user in the integer. I believe this part of mine is fine but then I have to click on a button which will convert the user's entry into an integer and indicate whether the user was successful or not. I think that I have a conversion correctly, but I am having trouble displaying that message, if the user succeeds, I will have to know how to work out the click method in VB Will allow you to appear. Any help with this would be greatly appreciated. The following is the code that I have already written for this project:
public class form 1 private sub-evaluation input () String input = ValueTextBox.Text if the input is incomplete (ifnumeric InputValue) then MessageBox.Show (InputValue & "is a number.") Either MessageBox.Show (InputValue & "is not a number.") End if end sub personal sub button 2_Click (Sender as System .Object, and System. EventArgs) Handle Button2.Click 'Continue Button End Sub Private All Button 1_Click ( As deputy from. Object system as Istm. Ivars Agriks) button 1 handles. Exit Button as the Button Button Dialog Result Button = Message Box Show _ ("Are you sure you want to get out of the application?", "Message", message box, Yes No, Message Box icon. Warning, Message Box, Default Button, Button 1) If Button = Windows.Forms.DialogResult.Yes Then Me.Close () Other 'Do not End End End End Class
I understand my question correctly, so y will need to change just where:
Private sub button 2_Click (The sender in the form of the system object, And system.AventArange__ handles the buttons. Click the Continue button Input () End sub When you press the button 2, it will call the EvolutionAut input sub and will display a message accordingly.
Comments
Post a Comment