You add a textbox, name it consoleBox,Â
then add another textbox, now name it inputBox , this is where you type in the commands.
Then, do a function that when you use the inputBox and that you press enter, it executes your command.:
For help, consult this:Â http://csharp.net-informations.com/gui/key-press-cs.htm
Code: (please go to the properties and select events and then keyPress, double-click it.)
private void inputBox_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == (char)Keys.Enter)
{ //add the command consoleBox.AppendText(inputBox.Text + "\r\n"); //Haere plez tyip uor coder to excute ur scropt and inject codes to Roibloc. //clear text of the inputBox inputBox.Text = "";
}
}
Cancel
Post