public Form1() { InitializeComponent(); // Initialize all widgets... // Create Shardem Memory Folder (systemPath) if does not exist System.IO.Directory.CreateDirectory(systemPath); //Create Shared Memory InitializeSharedMemory(); //splitContainer1.FixedPanel = FixedPanel.Panel1; splitContainer2.FixedPanel = FixedPanel.Panel2; AcceptButton = button5; //Send CancelButton = button4; //Close // let form use multiple fonts origFont = Font; FontFamily ff = new FontFamily("Courier New"); monoFont = new Font(ff, 8, FontStyle.Regular); // Product Directory bool exists = System.IO.Directory.Exists(systemPath); if (!exists) { System.IO.Directory.CreateDirectory(systemPath); } byte[] init = new byte[2]; init[0] = 0; init[0] = 0; //Port 1 settings1.Read("Port1"); com1.StatusChanged += OnStatusChanged; com1.DataReceived += OnDataReceived; com1.DataWrite += OnDataWrite1; com1.MasterStatus += OnMasterStatus; port1Label.Text = settings1.port.PortName; com1.setup(memCommand2); }