+3

Console.WriteLine and Readline

What is the alternate coding of Console.WriteLine and Console.ReadLine when using Windows Form?

c#

6/24/2019 4:02:40 PM

AB Rizni

2 Answers

New Answer

+2

Console.WriteLine Add a label to your winform label1.text = "hello" or Add a listbox to you winform listBox1.Items.Add("world"); Just to display MessageBox.Show("Sololearn"); Console.ReadLine Add textBox1 to you winform //write some text in the textbox //let the user press a button //in the button on click, write the following lines string myInput; myInput = textBox1.text Also have a look a these video's https://www.youtube.com/watch?v=T_-DiOlDQpY https://www.youtube.com/watch?v=kycLD1Ci33k

+1

Thanks a lot 😊