|
-
Jun 5th, 2007, 04:10 AM
#1
Thread Starter
Frenzied Member
[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
-
Jun 5th, 2007, 04:14 AM
#2
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.
-
Jun 5th, 2007, 04:15 AM
#3
Fanatic Member
Re: [2005] Adding duplicate Dynamically created controls
can you post the code that u r using?
-
Jun 5th, 2007, 04:21 AM
#4
Thread Starter
Frenzied Member
Re: [2005] Adding duplicate Dynamically created controls
Ah, I thought that might be the most likely issue. i'll just work round it.
Thanks,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|