
vs2008 c# messagebox 不能使用.
usingSystem;usingSystem.Linq;usingSystem.Collections.Generic;usingSystem.ComponentMod...
using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace SmartDeviceProject9
{
public partial class f1 : Form
{
public f1()
{
InitializeComponent();
}
private void tbPassword_TextChanged(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
if (tbName.Text == "peter" && tbPassword.Text == "jjj")
{
}
else {
MessageBox.Show("aa", "bb", MessageBoxButtons.OKCancel, MessageBoxIcon.Hand);
}
}
}
}
我是c# 的新手. 请大家指导一下.
MessageBox.Show("aa", "bb", MessageBoxButtons.OKCancel, MessageBoxIcon.Hand);
我真的不明白是左那里出错.
Error 1 No overload for method 'Show' takes '4' arguments C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\SmartDeviceProject9\SmartDeviceProject9\Form1.cs 33 17 SmartDeviceProject9 展开
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace SmartDeviceProject9
{
public partial class f1 : Form
{
public f1()
{
InitializeComponent();
}
private void tbPassword_TextChanged(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
if (tbName.Text == "peter" && tbPassword.Text == "jjj")
{
}
else {
MessageBox.Show("aa", "bb", MessageBoxButtons.OKCancel, MessageBoxIcon.Hand);
}
}
}
}
我是c# 的新手. 请大家指导一下.
MessageBox.Show("aa", "bb", MessageBoxButtons.OKCancel, MessageBoxIcon.Hand);
我真的不明白是左那里出错.
Error 1 No overload for method 'Show' takes '4' arguments C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\SmartDeviceProject9\SmartDeviceProject9\Form1.cs 33 17 SmartDeviceProject9 展开
4个回答
展开全部
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
MessageBoxIcon里面应该没有Hand
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
智能设置里的messagebox没有这样多的参数
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询