• 大小: 0.03M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-25
  • 语言: C#
  • 标签: 实例  C#  c  

资源简介


资源截图

代码片段和文件信息

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

namespace WindowsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        System.IO.Ports.SerialPort serialPort = new System.IO.Ports.SerialPort();
        private void button1_Click(object sender EventArgs e)
        {
            serialPort.Open();
            byte[] data = Convert.Frombase64String(serialPort.ReadLine());
            this.textBox1.Text = Encoding.Unicode.GetString(data);
            serialPort.Close();
            MessageBox.Show(“数据接收成功!“ “系统提示“);
        }

        private void Form1_Load(obj

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      20480  2015-03-20 12:32  WindowsApplication1\bin\Debug\WindowsApplication1.exe

     文件      22016  2015-03-20 12:32  WindowsApplication1\bin\Debug\WindowsApplication1.pdb

     文件       5632  2005-11-11 22:25  WindowsApplication1\bin\Debug\WindowsApplication1.vshost.exe

     文件       1277  2015-03-23 15:19  WindowsApplication1\Form1.cs

     文件       2591  2015-03-20 12:28  WindowsApplication1\Form1.Designer.cs

     文件       5814  2015-03-20 12:28  WindowsApplication1\Form1.resx

     文件        842  2015-03-20 12:32  WindowsApplication1\obj\Debug\WindowsApplication1.csproj.GenerateResource.Cache

     文件      20480  2015-03-20 12:32  WindowsApplication1\obj\Debug\WindowsApplication1.exe

     文件        180  2015-03-20 12:32  WindowsApplication1\obj\Debug\WindowsApplication1.Form1.resources

     文件      22016  2015-03-20 12:32  WindowsApplication1\obj\Debug\WindowsApplication1.pdb

     文件        180  2015-03-20 12:32  WindowsApplication1\obj\Debug\WindowsApplication1.Properties.Resources.resources

     文件       1160  2015-03-23 15:18  WindowsApplication1\obj\WindowsApplication1.csproj.FileListAbsolute.txt

     文件        478  2015-03-20 12:19  WindowsApplication1\Program.cs

     文件       1186  2015-03-20 12:19  WindowsApplication1\Properties\AssemblyInfo.cs

     文件       2894  2015-03-20 12:19  WindowsApplication1\Properties\Resources.Designer.cs

     文件       5612  2015-03-20 12:19  WindowsApplication1\Properties\Resources.resx

     文件       1104  2015-03-20 12:19  WindowsApplication1\Properties\Settings.Designer.cs

     文件        249  2015-03-20 12:19  WindowsApplication1\Properties\Settings.settings

     文件       3245  2015-03-20 12:19  WindowsApplication1\WindowsApplication1.csproj

     目录          0  2015-03-20 12:19  WindowsApplication1\obj\Debug\TempPE

     目录          0  2015-03-20 12:32  WindowsApplication1\bin\Debug

     目录          0  2015-03-20 12:32  WindowsApplication1\obj\Debug

     目录          0  2015-03-20 12:19  WindowsApplication1\bin

     目录          0  2015-03-20 12:32  WindowsApplication1\obj

     目录          0  2015-03-20 12:19  WindowsApplication1\Properties

     目录          0  2015-03-23 15:19  WindowsApplication1

----------- ---------  ---------- -----  ----

               117436                    26


评论

共有 条评论