Answers for "input box c# windows form"

C#
0

c# winforms input

// Follow the video to set up the rest of the project
private void btnOK_Click(object sender, EventArgs e)
{
	MessageBox.Show($"Welcome {txtName.Text}, you're {txtAge.Text} years old.");
}
Posted by: Guest on August-30-2021
-1

c# winforms input

private void btnCheckText_Click(object sender, EventArgs e)
    {
        answer = textBox1.Text;

        if (answer == "help")
        {
            MessageBox.Show("There is only 2 commands as of now and that is 'help' and 'program_speech' ");
        }
        else if (answer == "program_speech")
        {
            MessageBox.Show("Still currently under creation");
        }
        else
        {
            MessageBox.Show("Invalid Command. Please try again or type help for current available commands");
        }
    }
Posted by: Guest on March-25-2022

C# Answers by Framework

Browse Popular Code Answers by Language