如果想要把messegebox改成textbox方式,现在改都有错误该如何解决
public void Select(int x,int y,ref selected sel) //選棋
{
if(Piece[x,y]!=-1)
{
if(Handle==false&&Piece[x,y]<8)
{
** //textBox1.Text = "This is a TextBox control.";
MessageBox.Show("紅方棋子!");**
sel.select = true;
sel.x = x;
sel.y = y;
}
else if(Handle==true&&Piece[x,y]>=8)
{
MessageBox.Show("藍方棋子!");
sel.select = true;
sel.x = x;
sel.y = y;
}
}
}