Browse Source

下拉框不可编辑,返回英文信息

章政 6 years ago
parent
commit
35e077c2ec

+ 1 - 1
PLCDataReader/ClassFile/ModeBusTCPServer.cs

@@ -192,7 +192,7 @@ namespace ClassFile
                 int clientPort = (connection.RemoteEndPoint as IPEndPoint).Port;
 
                 //让客户显示"连接成功的"的信息  
-                string sendmsg = "连接服务端成功!\r\n" + "本地IP:" + clientIP + ",本地端口" + clientPort.ToString();
+                string sendmsg = "Connect Success!" + "LocalIP:" + clientIP + ",LocalPort" + clientPort.ToString();
                 byte[] arrSendMsg = Encoding.UTF8.GetBytes(sendmsg);
                 connection.Send(arrSendMsg);
 

+ 2 - 0
PLCDataReader/MainWindow.Designer.cs

@@ -100,6 +100,7 @@
             // 
             // SelectIP
             // 
+            this.SelectIP.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
             this.SelectIP.FormattingEnabled = true;
             this.SelectIP.Location = new System.Drawing.Point(533, 39);
             this.SelectIP.Name = "SelectIP";
@@ -135,6 +136,7 @@
             // 
             // Encoding
             // 
+            this.Encoding.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
             this.Encoding.FormattingEnabled = true;
             this.Encoding.Items.AddRange(new object[] {
             "UTF-8",