[RESOLVED] [2005] Adding duplicate Dynamically created controls
Hi folks, I've got a tab control, and on tab1 I have a flowpanel. I retrieve data from a database and create my controls (pictureboxes) based on data returned and add them to the flowpanel. This works fine.
I have another tab where I want to add the same pictureboxes but it wont work. I was hoping that I could simply add them when they are being generated to both flow panels. I tried creating a new picbox and copying the existing picbox and adding it but nothing I try is working.
Is there a simple solution?
Thanks
Re: [2005] Adding duplicate Dynamically created controls
You can't have one control in two places at once. You'd have to create two PictureBoxes, although you can display the same Image in both.
Re: [2005] Adding duplicate Dynamically created controls
can you post the code that u r using?
Re: [2005] Adding duplicate Dynamically created controls
Ah, I thought that might be the most likely issue. i'll just work round it.
Thanks,