Unity3D使用System.Windows.Forms.dll的方法
2013-12-30 12:59
585 查看
using UnityEngine;
using System.Collections;
using System.Windows.Forms;
public class Test : MonoBehaviour
{
// Use this for initialization
void Start()
{
}
// Update is called once per frame
void Update()
{
}
void OnGUI()
{
if (GUI.Button(new Rect(0, 0, 100, 20), "Button"))
{
MessageBoxYesCancel("yes");
}
}
public static DialogResult MessageBoxYesCancel(string Information)//通用弹出式信息显示对话框方法(进行互操作)返回黄色感汉号
{
string caption = "【系统提示】";
MessageBoxButtons buttons = MessageBoxButtons.YesNoCancel;
return MessageBox.Show(Information, caption, buttons, MessageBoxIcon.Question);
}
}
更多关于Unity3D的信息,可查询天地会http://unity3d.9tech.cn/
using System.Collections;
using System.Windows.Forms;
public class Test : MonoBehaviour
{
// Use this for initialization
void Start()
{
}
// Update is called once per frame
void Update()
{
}
void OnGUI()
{
if (GUI.Button(new Rect(0, 0, 100, 20), "Button"))
{
MessageBoxYesCancel("yes");
}
}
public static DialogResult MessageBoxYesCancel(string Information)//通用弹出式信息显示对话框方法(进行互操作)返回黄色感汉号
{
string caption = "【系统提示】";
MessageBoxButtons buttons = MessageBoxButtons.YesNoCancel;
return MessageBox.Show(Information, caption, buttons, MessageBoxIcon.Question);
}
}
更多关于Unity3D的信息,可查询天地会http://unity3d.9tech.cn/
相关文章推荐
- Unity3D使用System.Windows.Forms.dll
- Unity3d调用system.windows.forms.dll使用OpenFileDialog打开文件选择窗口
- Unity-使用System.Windows.Forms.dll
- .net chart(图表)控件的使用-System.Windows.Forms.DataVisualization.dll
- System.Windows.Forms.PropertyGrid的使用
- C#中 使用 System.Windows.Forms.Time 定时器
- Application.Run() 和 System.Windows.Forms.Form.Show() 方法的区别
- System.Windows.Forms.DataGridView的使用总结
- System.Windows.Forms.AxHost.InvalidActiveXStateException”类型的异常在 ESRI.ArcGIS.AxControls.dll 中发生,但未在用户代码中进行处理
- 'System.Threading.ThreadStateException' occurred in "System.Windows.Forms.dll " in opencv1.1 version
- 无法将类型“System.Windows.Forms.HtmlDocument”转换为“mshtml.IHTMLDocument2” 的解决方法
- 64位Windows 7 sp1使用MyEclipse 9.0注册机无法获取System ID 用CSDN看到的破解方法
- c#使用Windows.Forms里面计时器和System.Timers里面的计时器
- windows中静态库lib和动态dll的区别及使用方法
- 使用System.Windows.Forms.Application.DoEvents实时更新画面
- !!! C++/CLI中使用using namespace System::Windows::Forms;+MessageBox报错---最重要的是看MSDN 每个函数的使用例子
- An unhandled exception of type 'System.StackOverflowException' occurred in System.Windows.Forms.dll
- ThinkVantage System Update 在Windows 2003系统中无法使用的解决方法
- 转:找不到方法 system.Windows.forms.openfiledialog.get_safefileName()
- System.Net.Http.dll在Unity3D(UWP)的IL2CPP模式使用的解决方案