├── MySerialPort ├── MySerialPort.sln └── MySerialPort │ ├── App.config │ ├── Form1.Designer.cs │ ├── Form1.cs │ ├── Form1.resx │ ├── MySerialPort.csproj │ ├── Program.cs │ ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings │ ├── bin │ └── Debug │ │ ├── MySerialPort.exe │ │ ├── MySerialPort.exe.config │ │ └── MySerialPort.pdb │ └── obj │ └── Debug │ ├── DesignTimeResolveAssemblyReferences.cache │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ ├── MySerialPort.Form1.resources │ ├── MySerialPort.Properties.Resources.resources │ ├── MySerialPort.csproj.CoreCompileInputs.cache │ ├── MySerialPort.csproj.FileListAbsolute.txt │ ├── MySerialPort.csproj.GenerateResource.cache │ ├── MySerialPort.csprojAssemblyReference.cache │ ├── MySerialPort.exe │ └── MySerialPort.pdb └── README.md /MySerialPort/MySerialPort.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.27703.2035 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MySerialPort", "MySerialPort\MySerialPort.csproj", "{340733C5-045C-43BA-961B-3ED76ADC235D}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {340733C5-045C-43BA-961B-3ED76ADC235D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {340733C5-045C-43BA-961B-3ED76ADC235D}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {340733C5-045C-43BA-961B-3ED76ADC235D}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {340733C5-045C-43BA-961B-3ED76ADC235D}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {3B4F6DA4-718E-4365-8B78-ED72670C3D91} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /MySerialPort/MySerialPort/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /MySerialPort/MySerialPort/Form1.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace MySerialPort 2 | { 3 | partial class Form1 4 | { 5 | /// 6 | /// 必需的设计器变量。 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// 清理所有正在使用的资源。 12 | /// 13 | /// 如果应释放托管资源,为 true;否则为 false。 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows 窗体设计器生成的代码 24 | 25 | /// 26 | /// 设计器支持所需的方法 - 不要修改 27 | /// 使用代码编辑器修改此方法的内容。 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.components = new System.ComponentModel.Container(); 32 | this.serialPort = new System.IO.Ports.SerialPort(this.components); 33 | this.groupBox1 = new System.Windows.Forms.GroupBox(); 34 | this.button1 = new System.Windows.Forms.Button(); 35 | this.cmbBaud = new System.Windows.Forms.ComboBox(); 36 | this.cmbPort = new System.Windows.Forms.ComboBox(); 37 | this.label2 = new System.Windows.Forms.Label(); 38 | this.label1 = new System.Windows.Forms.Label(); 39 | this.groupBox2 = new System.Windows.Forms.GroupBox(); 40 | this.ReceiveTbox = new System.Windows.Forms.TextBox(); 41 | this.groupBox3 = new System.Windows.Forms.GroupBox(); 42 | this.SendTbox = new System.Windows.Forms.TextBox(); 43 | this.button2 = new System.Windows.Forms.Button(); 44 | this.groupBox1.SuspendLayout(); 45 | this.groupBox2.SuspendLayout(); 46 | this.groupBox3.SuspendLayout(); 47 | this.SuspendLayout(); 48 | // 49 | // groupBox1 50 | // 51 | this.groupBox1.Controls.Add(this.button1); 52 | this.groupBox1.Controls.Add(this.cmbBaud); 53 | this.groupBox1.Controls.Add(this.cmbPort); 54 | this.groupBox1.Controls.Add(this.label2); 55 | this.groupBox1.Controls.Add(this.label1); 56 | this.groupBox1.Location = new System.Drawing.Point(30, 12); 57 | this.groupBox1.Name = "groupBox1"; 58 | this.groupBox1.Size = new System.Drawing.Size(364, 129); 59 | this.groupBox1.TabIndex = 0; 60 | this.groupBox1.TabStop = false; 61 | this.groupBox1.Text = "串口设置"; 62 | // 63 | // button1 64 | // 65 | this.button1.Location = new System.Drawing.Point(252, 86); 66 | this.button1.Name = "button1"; 67 | this.button1.Size = new System.Drawing.Size(75, 23); 68 | this.button1.TabIndex = 4; 69 | this.button1.Text = "打开串口"; 70 | this.button1.UseVisualStyleBackColor = true; 71 | this.button1.Click += new System.EventHandler(this.button1_Click); 72 | // 73 | // cmbBaud 74 | // 75 | this.cmbBaud.FormattingEnabled = true; 76 | this.cmbBaud.Items.AddRange(new object[] { 77 | "4800", 78 | "9600", 79 | "19200", 80 | "38400", 81 | "115200"}); 82 | this.cmbBaud.Location = new System.Drawing.Point(100, 86); 83 | this.cmbBaud.Name = "cmbBaud"; 84 | this.cmbBaud.Size = new System.Drawing.Size(90, 20); 85 | this.cmbBaud.TabIndex = 3; 86 | // 87 | // cmbPort 88 | // 89 | this.cmbPort.FormattingEnabled = true; 90 | this.cmbPort.Location = new System.Drawing.Point(100, 26); 91 | this.cmbPort.Name = "cmbPort"; 92 | this.cmbPort.Size = new System.Drawing.Size(90, 20); 93 | this.cmbPort.TabIndex = 2; 94 | // 95 | // label2 96 | // 97 | this.label2.AutoSize = true; 98 | this.label2.Location = new System.Drawing.Point(43, 89); 99 | this.label2.Name = "label2"; 100 | this.label2.Size = new System.Drawing.Size(53, 12); 101 | this.label2.TabIndex = 1; 102 | this.label2.Text = "波特率:"; 103 | // 104 | // label1 105 | // 106 | this.label1.AutoSize = true; 107 | this.label1.Location = new System.Drawing.Point(43, 35); 108 | this.label1.Name = "label1"; 109 | this.label1.Size = new System.Drawing.Size(47, 12); 110 | this.label1.TabIndex = 0; 111 | this.label1.Text = "串 口:"; 112 | // 113 | // groupBox2 114 | // 115 | this.groupBox2.Controls.Add(this.ReceiveTbox); 116 | this.groupBox2.Location = new System.Drawing.Point(30, 159); 117 | this.groupBox2.Name = "groupBox2"; 118 | this.groupBox2.Size = new System.Drawing.Size(364, 125); 119 | this.groupBox2.TabIndex = 1; 120 | this.groupBox2.TabStop = false; 121 | this.groupBox2.Text = "接收数据"; 122 | // 123 | // ReceiveTbox 124 | // 125 | this.ReceiveTbox.Location = new System.Drawing.Point(45, 32); 126 | this.ReceiveTbox.Multiline = true; 127 | this.ReceiveTbox.Name = "ReceiveTbox"; 128 | this.ReceiveTbox.ReadOnly = true; 129 | this.ReceiveTbox.ScrollBars = System.Windows.Forms.ScrollBars.Horizontal; 130 | this.ReceiveTbox.Size = new System.Drawing.Size(251, 75); 131 | this.ReceiveTbox.TabIndex = 0; 132 | // 133 | // groupBox3 134 | // 135 | this.groupBox3.Controls.Add(this.SendTbox); 136 | this.groupBox3.Controls.Add(this.button2); 137 | this.groupBox3.Location = new System.Drawing.Point(30, 312); 138 | this.groupBox3.Name = "groupBox3"; 139 | this.groupBox3.Size = new System.Drawing.Size(364, 127); 140 | this.groupBox3.TabIndex = 2; 141 | this.groupBox3.TabStop = false; 142 | this.groupBox3.Text = "发送数据"; 143 | // 144 | // SendTbox 145 | // 146 | this.SendTbox.Location = new System.Drawing.Point(45, 20); 147 | this.SendTbox.Multiline = true; 148 | this.SendTbox.Name = "SendTbox"; 149 | this.SendTbox.ScrollBars = System.Windows.Forms.ScrollBars.Horizontal; 150 | this.SendTbox.Size = new System.Drawing.Size(203, 75); 151 | this.SendTbox.TabIndex = 1; 152 | // 153 | // button2 154 | // 155 | this.button2.Location = new System.Drawing.Point(272, 72); 156 | this.button2.Name = "button2"; 157 | this.button2.Size = new System.Drawing.Size(75, 23); 158 | this.button2.TabIndex = 5; 159 | this.button2.Text = "发送"; 160 | this.button2.UseVisualStyleBackColor = true; 161 | this.button2.Click += new System.EventHandler(this.button2_Click); 162 | // 163 | // Form1 164 | // 165 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); 166 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 167 | this.ClientSize = new System.Drawing.Size(424, 460); 168 | this.Controls.Add(this.groupBox3); 169 | this.Controls.Add(this.groupBox2); 170 | this.Controls.Add(this.groupBox1); 171 | this.Name = "Form1"; 172 | this.Text = "Form1"; 173 | this.Load += new System.EventHandler(this.Form1_Load); 174 | this.groupBox1.ResumeLayout(false); 175 | this.groupBox1.PerformLayout(); 176 | this.groupBox2.ResumeLayout(false); 177 | this.groupBox2.PerformLayout(); 178 | this.groupBox3.ResumeLayout(false); 179 | this.groupBox3.PerformLayout(); 180 | this.ResumeLayout(false); 181 | 182 | } 183 | 184 | #endregion 185 | 186 | private System.IO.Ports.SerialPort serialPort; 187 | private System.Windows.Forms.GroupBox groupBox1; 188 | private System.Windows.Forms.Button button1; 189 | private System.Windows.Forms.ComboBox cmbBaud; 190 | private System.Windows.Forms.ComboBox cmbPort; 191 | private System.Windows.Forms.Label label2; 192 | private System.Windows.Forms.Label label1; 193 | private System.Windows.Forms.GroupBox groupBox2; 194 | private System.Windows.Forms.GroupBox groupBox3; 195 | private System.Windows.Forms.Button button2; 196 | private System.Windows.Forms.TextBox SendTbox; 197 | private System.Windows.Forms.TextBox ReceiveTbox; 198 | } 199 | } 200 | 201 | -------------------------------------------------------------------------------- /MySerialPort/MySerialPort/Form1.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.Win32; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.ComponentModel; 5 | using System.Data; 6 | using System.Drawing; 7 | using System.IO.Ports; 8 | using System.Linq; 9 | using System.Text; 10 | using System.Threading.Tasks; 11 | using System.Windows.Forms; 12 | 13 | namespace MySerialPort 14 | { 15 | public partial class Form1 : Form 16 | { 17 | public Form1() 18 | { 19 | InitializeComponent(); 20 | System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = false;//设置该属性 为false 21 | } 22 | 23 | private void Form1_Load(object sender, EventArgs e) 24 | { 25 | RegistryKey keyCom = Registry.LocalMachine.OpenSubKey("Hardware\\DeviceMap\\SerialComm"); 26 | if (keyCom != null) 27 | { 28 | string[] sSubKeys = keyCom.GetValueNames(); 29 | cmbPort.Items.Clear(); 30 | foreach (string sName in sSubKeys) 31 | { 32 | string sValue = (string)keyCom.GetValue(sName); 33 | cmbPort.Items.Add(sValue); 34 | } 35 | if (cmbPort.Items.Count > 0) 36 | cmbPort.SelectedIndex = 0; 37 | } 38 | 39 | cmbBaud.Text = "115200"; 40 | 41 | } 42 | 43 | bool isOpened = false;//串口状态标志 44 | private void button1_Click(object sender, EventArgs e) 45 | { 46 | if (!isOpened) 47 | { 48 | serialPort.PortName = cmbPort.Text; 49 | serialPort.BaudRate = Convert.ToInt32(cmbBaud.Text, 10); 50 | try 51 | { 52 | serialPort.Open(); //打开串口 53 | button1.Text = "关闭串口"; 54 | cmbPort.Enabled = false;//关闭使能 55 | cmbBaud.Enabled = false; 56 | isOpened = true; 57 | serialPort.DataReceived += new SerialDataReceivedEventHandler(post_DataReceived);//串口接收处理函数 58 | } 59 | catch 60 | { 61 | MessageBox.Show("串口打开失败!"); 62 | } 63 | } 64 | else 65 | { 66 | try 67 | { 68 | serialPort.Close(); //关闭串口 69 | button1.Text = "打开串口"; 70 | cmbPort.Enabled = true;//打开使能 71 | cmbBaud.Enabled = true; 72 | isOpened = false; 73 | } 74 | catch 75 | { 76 | MessageBox.Show("串口关闭失败!"); 77 | } 78 | } 79 | 80 | } 81 | private void post_DataReceived(object sender, SerialDataReceivedEventArgs e) 82 | { 83 | string str = serialPort.ReadExisting();//字符串方式读 84 | ReceiveTbox.Text = "";//先清除上一次的数据 85 | ReceiveTbox.Text += str; 86 | } 87 | 88 | private void button2_Click(object sender, EventArgs e) 89 | { 90 | //发送数据 91 | if (serialPort.IsOpen) 92 | {//如果串口开启 93 | if (SendTbox.Text.Trim() != "")//如果框内不为空则 94 | { 95 | serialPort.Write(SendTbox.Text.Trim());//写数据 96 | } 97 | else 98 | { 99 | MessageBox.Show("发送框没有数据"); 100 | } 101 | } 102 | else 103 | { 104 | MessageBox.Show("串口未打开"); 105 | } 106 | } 107 | } 108 | } 109 | -------------------------------------------------------------------------------- /MySerialPort/MySerialPort/Form1.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | 17, 17 122 | 123 | -------------------------------------------------------------------------------- /MySerialPort/MySerialPort/MySerialPort.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {340733C5-045C-43BA-961B-3ED76ADC235D} 8 | WinExe 9 | MySerialPort 10 | MySerialPort 11 | v4.6.1 12 | 512 13 | true 14 | 15 | 16 | AnyCPU 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | AnyCPU 27 | pdbonly 28 | true 29 | bin\Release\ 30 | TRACE 31 | prompt 32 | 4 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | Form 50 | 51 | 52 | Form1.cs 53 | 54 | 55 | 56 | 57 | Form1.cs 58 | 59 | 60 | ResXFileCodeGenerator 61 | Resources.Designer.cs 62 | Designer 63 | 64 | 65 | True 66 | Resources.resx 67 | 68 | 69 | SettingsSingleFileGenerator 70 | Settings.Designer.cs 71 | 72 | 73 | True 74 | Settings.settings 75 | True 76 | 77 | 78 | 79 | 80 | 81 | 82 | -------------------------------------------------------------------------------- /MySerialPort/MySerialPort/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using System.Windows.Forms; 6 | 7 | namespace MySerialPort 8 | { 9 | static class Program 10 | { 11 | /// 12 | /// 应用程序的主入口点。 13 | /// 14 | [STAThread] 15 | static void Main() 16 | { 17 | Application.EnableVisualStyles(); 18 | Application.SetCompatibleTextRenderingDefault(false); 19 | Application.Run(new Form1()); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /MySerialPort/MySerialPort/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的一般信息由以下 6 | // 控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("MySerialPort")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("MySerialPort")] 13 | [assembly: AssemblyCopyright("Copyright © 2018")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // 将 ComVisible 设置为 false 会使此程序集中的类型 18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 19 | //请将此类型的 ComVisible 特性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("340733c5-045c-43ba-961b-3ed76adc235d")] 24 | 25 | // 程序集的版本信息由下列四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 生成号 30 | // 修订号 31 | // 32 | // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 33 | // 方法是按如下所示使用“*”: : 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /MySerialPort/MySerialPort/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // 此代码由工具生成。 4 | // 运行时版本: 4.0.30319.42000 5 | // 6 | // 对此文件的更改可能导致不正确的行为,如果 7 | // 重新生成代码,则所做更改将丢失。 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace MySerialPort.Properties 12 | { 13 | 14 | 15 | /// 16 | /// 强类型资源类,用于查找本地化字符串等。 17 | /// 18 | // 此类是由 StronglyTypedResourceBuilder 19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。 20 | // 若要添加或删除成员,请编辑 .ResX 文件,然后重新运行 ResGen 21 | // (以 /str 作为命令选项),或重新生成 VS 项目。 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources 26 | { 27 | 28 | private static global::System.Resources.ResourceManager resourceMan; 29 | 30 | private static global::System.Globalization.CultureInfo resourceCulture; 31 | 32 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 33 | internal Resources() 34 | { 35 | } 36 | 37 | /// 38 | /// 返回此类使用的缓存 ResourceManager 实例。 39 | /// 40 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 41 | internal static global::System.Resources.ResourceManager ResourceManager 42 | { 43 | get 44 | { 45 | if ((resourceMan == null)) 46 | { 47 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("MySerialPort.Properties.Resources", typeof(Resources).Assembly); 48 | resourceMan = temp; 49 | } 50 | return resourceMan; 51 | } 52 | } 53 | 54 | /// 55 | /// 覆盖当前线程的 CurrentUICulture 属性 56 | /// 使用此强类型的资源类的资源查找。 57 | /// 58 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 59 | internal static global::System.Globalization.CultureInfo Culture 60 | { 61 | get 62 | { 63 | return resourceCulture; 64 | } 65 | set 66 | { 67 | resourceCulture = value; 68 | } 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /MySerialPort/MySerialPort/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 |  2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | text/microsoft-resx 107 | 108 | 109 | 2.0 110 | 111 | 112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 113 | 114 | 115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | -------------------------------------------------------------------------------- /MySerialPort/MySerialPort/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace MySerialPort.Properties 12 | { 13 | 14 | 15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] 17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 18 | { 19 | 20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 21 | 22 | public static Settings Default 23 | { 24 | get 25 | { 26 | return defaultInstance; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /MySerialPort/MySerialPort/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /MySerialPort/MySerialPort/bin/Debug/MySerialPort.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuace/CSharp--SerialPort/0e67df3f97c492bb8a11cf873ea0a7045a347f06/MySerialPort/MySerialPort/bin/Debug/MySerialPort.exe -------------------------------------------------------------------------------- /MySerialPort/MySerialPort/bin/Debug/MySerialPort.exe.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /MySerialPort/MySerialPort/bin/Debug/MySerialPort.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuace/CSharp--SerialPort/0e67df3f97c492bb8a11cf873ea0a7045a347f06/MySerialPort/MySerialPort/bin/Debug/MySerialPort.pdb -------------------------------------------------------------------------------- /MySerialPort/MySerialPort/obj/Debug/DesignTimeResolveAssemblyReferences.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuace/CSharp--SerialPort/0e67df3f97c492bb8a11cf873ea0a7045a347f06/MySerialPort/MySerialPort/obj/Debug/DesignTimeResolveAssemblyReferences.cache -------------------------------------------------------------------------------- /MySerialPort/MySerialPort/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuace/CSharp--SerialPort/0e67df3f97c492bb8a11cf873ea0a7045a347f06/MySerialPort/MySerialPort/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /MySerialPort/MySerialPort/obj/Debug/MySerialPort.Form1.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuace/CSharp--SerialPort/0e67df3f97c492bb8a11cf873ea0a7045a347f06/MySerialPort/MySerialPort/obj/Debug/MySerialPort.Form1.resources -------------------------------------------------------------------------------- /MySerialPort/MySerialPort/obj/Debug/MySerialPort.Properties.Resources.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuace/CSharp--SerialPort/0e67df3f97c492bb8a11cf873ea0a7045a347f06/MySerialPort/MySerialPort/obj/Debug/MySerialPort.Properties.Resources.resources -------------------------------------------------------------------------------- /MySerialPort/MySerialPort/obj/Debug/MySerialPort.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 1d7435ca09093e30823dd0871240b2dd77db69f9 2 | -------------------------------------------------------------------------------- /MySerialPort/MySerialPort/obj/Debug/MySerialPort.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Users\Administrator\Desktop\MySerialPort\MySerialPort\MySerialPort\bin\Debug\MySerialPort.exe.config 2 | C:\Users\Administrator\Desktop\MySerialPort\MySerialPort\MySerialPort\bin\Debug\MySerialPort.exe 3 | C:\Users\Administrator\Desktop\MySerialPort\MySerialPort\MySerialPort\bin\Debug\MySerialPort.pdb 4 | C:\Users\Administrator\Desktop\MySerialPort\MySerialPort\MySerialPort\obj\Debug\MySerialPort.csprojAssemblyReference.cache 5 | C:\Users\Administrator\Desktop\MySerialPort\MySerialPort\MySerialPort\obj\Debug\MySerialPort.Form1.resources 6 | C:\Users\Administrator\Desktop\MySerialPort\MySerialPort\MySerialPort\obj\Debug\MySerialPort.Properties.Resources.resources 7 | C:\Users\Administrator\Desktop\MySerialPort\MySerialPort\MySerialPort\obj\Debug\MySerialPort.csproj.GenerateResource.cache 8 | C:\Users\Administrator\Desktop\MySerialPort\MySerialPort\MySerialPort\obj\Debug\MySerialPort.csproj.CoreCompileInputs.cache 9 | C:\Users\Administrator\Desktop\MySerialPort\MySerialPort\MySerialPort\obj\Debug\MySerialPort.exe 10 | C:\Users\Administrator\Desktop\MySerialPort\MySerialPort\MySerialPort\obj\Debug\MySerialPort.pdb 11 | -------------------------------------------------------------------------------- /MySerialPort/MySerialPort/obj/Debug/MySerialPort.csproj.GenerateResource.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuace/CSharp--SerialPort/0e67df3f97c492bb8a11cf873ea0a7045a347f06/MySerialPort/MySerialPort/obj/Debug/MySerialPort.csproj.GenerateResource.cache -------------------------------------------------------------------------------- /MySerialPort/MySerialPort/obj/Debug/MySerialPort.csprojAssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuace/CSharp--SerialPort/0e67df3f97c492bb8a11cf873ea0a7045a347f06/MySerialPort/MySerialPort/obj/Debug/MySerialPort.csprojAssemblyReference.cache -------------------------------------------------------------------------------- /MySerialPort/MySerialPort/obj/Debug/MySerialPort.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuace/CSharp--SerialPort/0e67df3f97c492bb8a11cf873ea0a7045a347f06/MySerialPort/MySerialPort/obj/Debug/MySerialPort.exe -------------------------------------------------------------------------------- /MySerialPort/MySerialPort/obj/Debug/MySerialPort.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yuace/CSharp--SerialPort/0e67df3f97c492bb8a11cf873ea0a7045a347f06/MySerialPort/MySerialPort/obj/Debug/MySerialPort.pdb -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CSharp--SerialPort 2 | C#实现简单串口通信助手 3 | --------------------------------------------------------------------------------