• 大小: 0.06M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 串口  调试  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO.Ports;

namespace project4
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = false;
        }

        private void button1_Click(object sender EventArgs e)
        {
            try
            {
                serialPort1.PortName = comboBox1.Text;//设置串口号
                serialPort1.BaudRate = Convert.ToInt32(comboBox2.Text 10);//十进制数据转换,设置波特率
                serialPort1.Open();//打开串口
                button1.Enabled = false;/

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-11-16 19:54  project4\
     目录           0  2015-11-16 19:54  project4\project4\
     文件       13533  2015-11-16 21:47  project4\project4\Form1.Designer.cs
     文件        5544  2015-11-16 21:54  project4\project4\Form1.cs
     文件        6016  2015-11-16 21:47  project4\project4\Form1.resx
     文件         489  2015-11-16 19:54  project4\project4\Program.cs
     目录           0  2015-11-16 19:54  project4\project4\Properties\
     文件        1336  2015-11-16 19:54  project4\project4\Properties\AssemblyInfo.cs
     文件        2868  2015-11-16 19:54  project4\project4\Properties\Resources.Designer.cs
     文件        5612  2015-11-16 19:54  project4\project4\Properties\Resources.resx
     文件        1095  2015-11-16 19:54  project4\project4\Properties\Settings.Designer.cs
     文件         249  2015-11-16 19:54  project4\project4\Properties\Settings.settings
     目录           0  2015-11-16 19:54  project4\project4\bin\
     目录           0  2015-11-16 21:42  project4\project4\bin\Debug\
     文件       14336  2015-11-17 10:20  project4\project4\bin\Debug\project4.exe
     文件       28160  2015-11-17 10:20  project4\project4\bin\Debug\project4.pdb
     文件       22472  2015-11-17 10:22  project4\project4\bin\Debug\project4.vshost.exe
     文件         490  2010-03-17 22:39  project4\project4\bin\Debug\project4.vshost.exe.manifest
     目录           0  2015-11-16 19:54  project4\project4\obj\
     目录           0  2015-11-17 10:20  project4\project4\obj\Debug\
     文件        1451  2015-11-16 22:06  project4\project4\obj\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        6830  2015-11-16 19:56  project4\project4\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     目录           0  2015-11-17 22:15  project4\project4\obj\Debug\TempPE\
     文件         180  2015-11-16 21:47  project4\project4\obj\Debug\project4.Form1.resources
     文件         180  2015-11-16 21:42  project4\project4\obj\Debug\project4.Properties.Resources.resources
     文件         674  2015-11-17 10:22  project4\project4\obj\Debug\project4.csproj.FileListAbsolute.txt
     文件         975  2015-11-16 21:47  project4\project4\obj\Debug\project4.csproj.GenerateResource.Cache
     文件        2209  2015-11-17 10:20  project4\project4\obj\Debug\project4.csprojResolveAssemblyReference.cache
     文件       14336  2015-11-17 10:20  project4\project4\obj\Debug\project4.exe
     文件       28160  2015-11-17 10:20  project4\project4\obj\Debug\project4.pdb
     文件        3729  2015-11-16 20:27  project4\project4\project4.csproj
............此处省略2个文件信息

评论

共有 条评论