Home > Back-end >  C builder set to select two CheckListBox controls
C builder set to select two CheckListBox controls

Time:09-28

Such as topic, how to set up in the CheckListBox control can choose two projects, the urgent please!!!

CodePudding user response:

 void __fastcall TForm4: : FormCreate (TObject * Sender) 
{
CheckListBox1 - & gt; The Items - & gt; Add (" a ");
CheckListBox1 - & gt; The Items - & gt; Add (" b ");
CheckListBox1 - & gt; The Items - & gt; Add (" c ");
CheckListBox1 - & gt; The Items - & gt; Add (" d ");

CheckListBox1 - & gt; Checked [1]=true;
CheckListBox1 - & gt; Checked [2]=true;
}
  • Related