WPF中加载System.Windows.Forms;

来源:互联网 发布:11对战平台网络问题 编辑:程序博客网 时间:2024/06/06 05:27

工程中需要用到定时器Timer

其头文件为System.Windows.Forms;


直接加上using System.Windows.Forms; 该头文件不识别;

需要在工程中添加引用:

程序集中选择下两项

[WindowsFormsIntegration]和[System.Windows.Forms]

点击确定即可;




0 0
原创粉丝点击