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

资源简介

接受发送

资源截图

代码片段和文件信息

using System;
using System.IO.Ports;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        SerialPort sp = null;
        bool isOpen = false;
        bool isSetProperty = false;
        //bool isHex = false;
        bool isHex = false;
        public Form1()
        {
            InitializeComponent();//窗口初始化
        }

        private void Form1_Load(object sender System.EventArgs e)
        {
            this.MaximumSize = this.Size;
            this.MinimumSize = this.Size;
            this.MaximizeBox = false;
            for(int i = 0;i < 8;i++)
            {
                cbxCOMPort.Items.Add(“COM“ + (i + 1).ToString());
            }
            cbxCOMPort.SelectedIndex 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-05-22 18:56  串口小程序\
     目录           0  2018-05-16 13:09  串口小程序\WindowsFormsApplication1\
     文件       14357  2018-05-16 18:06  串口小程序\WindowsFormsApplication1\Form1.Designer.cs
     文件        9267  2018-05-17 11:16  串口小程序\WindowsFormsApplication1\Form1.cs
     文件        6017  2018-05-16 18:06  串口小程序\WindowsFormsApplication1\Form1.resx
     文件         505  2018-02-27 16:07  串口小程序\WindowsFormsApplication1\Program.cs
     目录           0  2018-05-14 10:48  串口小程序\WindowsFormsApplication1\Properties\
     文件        1398  2018-02-27 16:07  串口小程序\WindowsFormsApplication1\Properties\AssemblyInfo.cs
     文件        2900  2018-02-27 16:07  串口小程序\WindowsFormsApplication1\Properties\Resources.Designer.cs
     文件        5612  2018-02-27 16:07  串口小程序\WindowsFormsApplication1\Properties\Resources.resx
     文件        1111  2018-02-27 16:07  串口小程序\WindowsFormsApplication1\Properties\Settings.Designer.cs
     文件         249  2018-02-27 16:07  串口小程序\WindowsFormsApplication1\Properties\Settings.settings
     文件        2294  2018-05-16 15:34  串口小程序\WindowsFormsApplication1\UserControl1.Designer.cs
     文件         395  2018-05-16 15:34  串口小程序\WindowsFormsApplication1\UserControl1.cs
     文件        6226  2018-05-16 15:34  串口小程序\WindowsFormsApplication1\UserControl1.resx
     文件        4107  2018-05-16 15:34  串口小程序\WindowsFormsApplication1\WindowsFormsApplication1.csproj
     目录           0  2018-05-14 10:48  串口小程序\WindowsFormsApplication1\bin\
     目录           0  2018-05-17 11:17  串口小程序\WindowsFormsApplication1\bin\Debug\
     文件       18432  2018-05-17 11:17  串口小程序\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe
     文件       40448  2018-05-17 11:17  串口小程序\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb
     文件       11600  2018-05-17 11:17  串口小程序\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe
     目录           0  2018-05-17 11:16  串口小程序\WindowsFormsApplication1\bin\Release\
     文件       17920  2018-05-17 11:16  串口小程序\WindowsFormsApplication1\bin\Release\WindowsFormsApplication1.exe
     文件       32256  2018-05-17 11:16  串口小程序\WindowsFormsApplication1\bin\Release\WindowsFormsApplication1.pdb
     文件       24224  2018-05-24 09:01  串口小程序\WindowsFormsApplication1\bin\Release\WindowsFormsApplication1.vshost.exe
     文件         490  2017-09-29 21:43  串口小程序\WindowsFormsApplication1\bin\Release\WindowsFormsApplication1.vshost.exe.manifest
     目录           0  2018-05-14 10:48  串口小程序\WindowsFormsApplication1\obj\
     目录           0  2018-05-14 10:48  串口小程序\WindowsFormsApplication1\obj\x86\
     目录           0  2018-05-17 11:17  串口小程序\WindowsFormsApplication1\obj\x86\Debug\
     文件        5420  2018-02-28 08:00  串口小程序\WindowsFormsApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        6491  2018-05-17 11:17  串口小程序\WindowsFormsApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
............此处省略24个文件信息

评论

共有 条评论