Console.WriteLine(" ----------------");
Console.WriteLine(" | |");
Console.WriteLine(" | write your |");
Console.WriteLine(" | name |");
Console.WriteLine(" | Console.Readline(); |");
Console.WriteLine(" ----------------");
Suthish NairPosted Sep 11, 2013, 9:57 AM
string strResponse = Interaction.InputBox("write your name");
if (strResponse != string.Empty)
{
Console.WriteLine(" | " + strResponse + " |");
}
Console.WriteLine("Enter some characters.");
string str = Console.ReadLine();
Console.WriteLine("You entered: " + str);
Console.ReadLine();
Joxin StanlyPosted Sep 11, 2013, 9:31 AM
putting string getInput = Console.Readline(); at the start will help??
Rasmus LorenzenPosted Sep 10, 2013, 4:40 PM
i want it to load the whole box first and then i should write the name inside the box
Joxin StanlyPosted Sep 10, 2013, 7:15 AM
try somthing below-:
Console.WriteLine(" ----------------");
Console.WriteLine(" | |");
Console.WriteLine(" | write your |");
Console.WriteLine(" | name |");
string getInput = Console.Readline();
Console.WriteLine(" |" + getInput +" |");
Console.WriteLine(" ----------------");