I hadd the visualBasic to my visual but this error keep showing. The game works until this function has to work, then it close. Here you have the function and the line that is wrong. I dont know how to fix it
private string PedirAlias(){
**String alias = Microsoft.VisualBasic.Interaction.InputBox("Introduce tu alias: " , "Nuevo record" , "None" , 100 , 100 );**
string alias_aux = "";
for (int i = 0; i < alias.Length && i<8; i++)
{
alias_aux += alias[i];
}
if(alias.Length<8){
for (int i = alias.Length; i <8; i++)
{
alias_aux += "";
}
}
return alias_aux;
}