Pass contents of checked list box to parent form

Archived support forum for customers who once purchased a PrimalForms product license. This forum is locked.
This topic is 12 years and 4 weeks old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
gaiid_it
Posts: 7
Last visit: Thu Mar 13, 2014 1:23 am

Pass contents of checked list box to parent form

Post by gaiid_it »

Hi,My parent form opens a sub form that then displays all AD groups in a checked list box. Checked groups are shown in a listbox in the sub form and should then be passed back to the parent form and displayed in another listbox.I cannot pass the listbox contents back at all and if I try to pass the checked list box, it will only show the last checked option, not the collection.I am have tried using script:subform_control and subform_control as the suggestion list displays them.how do I get the complete collection of checked items in the sub form back to the parent form?Thanks
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Pass contents of checked list box to parent form

Post by davidc »

Support for the CheckBoxList will be added in the next service build. In the mean time you can add the following to the subforms's FormClosing event:

$form1_FormClosing=[System.Windows.Forms.FormClosingEventHandler]{

#Event Argument: $_ =
[System.Windows.Forms.FormClosingEventArgs]

$script:subform_checkedlistbox1 = $checkedlistbox1.CheckedItems

}

David

David
SAPIEN Technologies, Inc.
This topic is 12 years and 4 weeks old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.