Passing data from main form to dialog box?
Posted on 2002-06-18
What is the best way to pass data from the mainform to a dialog box and then send data from the dialog back to the main form.
I want a CheckBoxlist on my dialog which gets populated by data which is accessible in the mainform. Then when the user makes his/her selection and clicks ok, the list of selected items needs to be sent back to the mainform to be processed.
I tried adding a parameter in the dialog form's create method, hoping I could pass in a TStringsList, but that didn't seem to work. So how Can I do this??