C# private void pictureBox10_MouseDown(object sender, MouseEventArgs e)什么意思 10
privatevoidpictureBox10_MouseDown(objectsender,MouseEventArgse){inti=Convert.ToInt32(...
private voidpictureBox10_MouseDown(object sender, MouseEventArgs e)
{
int i = Convert.ToInt32((sender asPictureBox).Name.Substring(11, 1));
switch (i)
{
case 0:
{
pictureBox10.Visible =false;
n += 1;
textBox1.Text =n.ToString();
break;
}
case 1:
{
pictureBox11.Visible =false;
n += 1;
textBox1.Text =n.ToString();
break;
} 展开
{
int i = Convert.ToInt32((sender asPictureBox).Name.Substring(11, 1));
switch (i)
{
case 0:
{
pictureBox10.Visible =false;
n += 1;
textBox1.Text =n.ToString();
break;
}
case 1:
{
pictureBox11.Visible =false;
n += 1;
textBox1.Text =n.ToString();
break;
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询