if(checkedListBox1.CheckedItems.Count != 0) { // If so, loop through all checked items and print results. string s = ""; for(int x = 0; x <= checkedListBox1.CheckedItems.Count - 1 ; x++) { s = s + "Checked Item " + (x+1).ToString() + " = "+ checkedListBox1.CheckedItems[x].ToString() + "\n"; } MessageBox.Show (s); }
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO.Ports; namespace SerialTest1 { public partial class Form1 : Form { delegate void MyDelegate(); //델리게이트 선언(크로스 쓰레드 해결하기 위한 용도) bool SendForamt = true; // true : ASCII false : HEX bool ReceiveFormat = true; // true : ASCII false : HEX public Form1() { InitializeComponent(); ...
댓글