社区
C#
帖子详情
MessageBox是System.windows.Forms.MessageBox和System.Windws.MessageBox之间不明确引用
mcuatmel
2019-08-07 02:38:11
请问这个错误是怎么回事?这个是我主窗中出现的,很奇怪,第一次遇到。
...全文
712
4
打赏
收藏
MessageBox是System.windows.Forms.MessageBox和System.Windws.MessageBox之间不明确引用
请问这个错误是怎么回事?这个是我主窗中出现的,很奇怪,第一次遇到。
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
mcuatmel
2019-08-07
打赏
举报
回复
好的,明白了。
mcuatmel
2019-08-07
打赏
举报
回复
为什么会这样,我一直都是这么写的,而且同一个工程中,在别的窗体中没有问题。
github_36000833
2019-08-07
打赏
举报
回复
2
因为你命名空间同时有: using System.windows.Forms; using System.Windws; 两个命名空间下都有MessageBox类,编译器不够聪明,不知道你正在用哪一个。
github_36000833
2019-08-07
打赏
举报
回复
1
你可以写全称,比如:
System.windows.Forms.
MessageBox.Show
System.
Windows
.
MessageBox
与System.
Windows
.
Forms
.
MessageBox
的区别
System.
Windows
.
MessageBox
是与WPF一起添加的,并且存在于WPF程序集(PresentationFramework.dll)中。 System.
Windows
.
Forms
.
MessageBox
是
Windows
窗体添加的,并且存在于
Windows
窗体程序集中 WPF开发就用 System.
Windows
.
MessageBox
Win
Forms
开发 使用System.
Windows
.
Forms
.
MessageBox
...
System.
Windows
.
Forms
命名空间的
MessageBox
.show()用法大全
摘要: // 显示消息窗口(也称为对话框)向用户展示消息。 这是一个模式窗口,可阻止应用程序中的其他操作,直到用户将其关闭。 System.
Windows
.
Forms
.
MessageBox
// 可包含通知并指示用户的文本、按钮和符号。 // // 摘要: // 显示一个具有指定文本、标题、按钮、图标、默认按钮、选项和“帮助”按钮的消息框。 // // 参数: // text: // 要在消息框中显示的文本。 // // caption: // ...
C# 定时器的使用 System.
Windows
.
Forms
.Timer,System.Timers.Timer,System.Threading.Timer
在Framework中存在着4种定时器:其中分为两类, 多线程计时器 1:System.Threading.Timer 2:System.Timers.Timer 特殊目的的单线程计时器: 1:System.
Windows
.
Forms
.Timer(
Windows
Forms
Timer) 2:System.
Windows
.Threading.DispatcherTimer(WPF ti
C#编程报错- “ComboBox”是“...ComboBox”和“...ComboBox”
之间
的不
明确
的
引用
解决VS报错“不
明确
的
引用
”,CS0104 “ComboBox”是“System.
Windows
.
Forms
.ComboBox”和“System.
Windows
.
Forms
.VisualStyles.VisualStyleElement.ComboBox”
之间
的不
明确
的
引用
System.
Windows
.
Forms
.DataVisualization.Charting.Chart
//创建圖形式的Chart System.
Windows
.
Forms
.DataVisualization.Charting.Chart chart1 = new System.
Windows
.
Forms
.DataVisualization.Charting.Chart(); //定义一个chart System.Win...
C#
111,094
社区成员
642,554
社区内容
发帖
与我相关
我的任务
C#
.NET技术 C#
复制链接
扫一扫
分享
社区描述
.NET技术 C#
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧
+ 用AI写文章