Open PedroAlvesq opened 10 years ago
Copied from email response for reference:
Firstly why use a tab control to store more then 1 console? The console supports channels for that. ;)
The basic way would be to disable the control and change it's visible property to false.
I would also suggest to turning everything into a control, and keep the variables at the top level and not recreate them all the time. (Just hide them while not in use.)
i do like this to hide the tabcontrol the problem i can´t put if the console is hide i press in enter and show and only hide if the i don´t put any msg in textbox of the chat
if (currentKeyboardState.IsKeyDown(Keys.Enter))
{
//if(tbc.Visible==true){
tbc.Visible = false;
// }
//else
//{
// tbc.Show();
//}
// InitConsole(text).Show();
//windows();
}
how i put my show my console en i press enter and i press enter hide if the msg in empy becouse i don´t want write some mistake en i move the character this is my code