+ 3

Console.WriteLine and Readline

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

24th Jun 2019, 4:02 PM
AB Rizni
AB Rizni - avatar
2 Réponses
+ 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
24th Jun 2019, 7:27 PM
sneeze
sneeze - avatar
+ 1
Thanks a lot 😊
25th Jun 2019, 7:03 AM
AB Rizni
AB Rizni - avatar