Inherit a controls content and properties from one form to another
Posted on 2002-07-18
I am looking for a way to inherit a listboxes list items and item data from another form's listbox without looping through to copy when the new form is loaded. For instance, I have a list on Form1 with three items and corresponding itemdata values. I load Form2 which has a listbox. I want this listbox to inherit the items from the list on Form1 without copying each item in code.
Is this possible and if so do you have any sample code illustrating it.