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 { ///

/// Interaction logic for MainWindow.xaml /// public partial class MainWindow : Window { public MainWindow() { void MainWindow(object sender, EventArgs e) {

}

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!