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
展开
 我来答
weizhong1688
2010-08-08 · TA获得超过1248个赞
知道小有建树答主
回答量:1514
采纳率:61%
帮助的人:631万
展开全部

MessageBox.Show 语句没错,找一下其他方面的错误 

不要绝对相信系统。

脾气0不坏
2010-08-07 · TA获得超过105个赞
知道小有建树答主
回答量:245
采纳率:0%
帮助的人:208万
展开全部
没有4个参数的Show方法???
看不出来啊
你到msdn上看看
http://msdn.microsoft.com/zh-cn/library/365dky5y.aspx
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
百度网友d1855349d
2010-08-07 · TA获得超过430个赞
知道小有建树答主
回答量:425
采纳率:0%
帮助的人:0
展开全部
MessageBoxIcon里面应该没有Hand
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
dragon2snow
2010-08-07 · TA获得超过1099个赞
知道小有建树答主
回答量:1150
采纳率:0%
帮助的人:1159万
展开全部
智能设置里的messagebox没有这样多的参数
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(2)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式