日期:2014-05-18  浏览次数:20818 次

C# 命名空间
private AxMSCommLib.AxMSComm MSCOMM;


用到哪个命名空间呀

------解决方案--------------------
调用MSCOMM32.OCX控件可以实现串口通信
------解决方案--------------------
先注册,后使用
http://www.cnblogs.com/zpjwys/archive/2009/02/05/1384626.html
------解决方案--------------------
  代码如下:
using ;
using .Text;
using .Drawing;
using .Collections;
using .ComponentModel;
using .Windows.Forms;
using .Data;
complc
{
/// <summary>
/// Form1 摘要介绍说明
/// </summary> [Page]
public comForm : .Windows.Forms.Form
{
private AxMSCommLib.AxMSComm axMSComm1;
private .Windows.Forms.TextBox textBox1;
private .Windows.Forms.TextBox textBox2;
private .Windows.Forms.Button button1;
private .Windows.Forms.Button button2;
private .Windows.Forms.Label label1;
private .Windows.Forms.Label label2;
/// <summary>
/// 必需设计器变量
------解决方案--------------------
或者这里

http://download.csdn.net/source/1062532