Question
write a C# WPF application called HelloYourName that includes a label, textbox, and button using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using
write a C# WPF application called HelloYourName that includes a label, textbox, and button
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes;
namespace HelloYourName { ///
}
void btn_1_Click(object sender, EventArgs e) { string var; var = textBox1.Text; MessageBox.Show(var); } } } }
I can't figure out how to get the system to rationalize when the button has been clicked and then read the user input from the text box, and display it in the message box below with the prefilled message combined with the user input, so it should look like this.
"Hello Jonathan, Welcome to Class!"
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started