標題: C#與MYSQL程式碼問題 [列印本頁] 作者: kc100639 時間: 2011-6-6 16:57 標題: C#與MYSQL程式碼問題 using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO.Ports;
using MySql.Data.MySqlClient;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string data = string.Empty;
//開啟rs232 Port (開啟COM1,鮑率為19200,同為檢查為元為沒有,位元率為8,停止位元數為1)
SerialPort rs232 = new SerialPort("COM1", 19200, Parity.None, 8, StopBits.One);