I'm prototyping an windows app, and I'm stuck on an issue wit flowlayoutpanels. Im using dev studio 2008, and working in VB
Here's the gig:
a bunch of buttons on one form populate the flowlayoutpanel with labels (each button creates a unique label). That works great.
the problem is, when the user opens the form that contains the flowlayoutpanel, they need to be able to trigger events based on the "mouseenters" for each label IN the flowlayoutpanel (all that happens is that a paragraph of text in a textbox changes, depending on which label the mouse is on).
the problem i have is: How do I code the "mouseneters" event when the label doesn't exist on the form yet?
Here's what I've tried:
create the 'mousenter' event for each label (I can force the name on them to be what I want, so addressing it is easy). This throws build errors because the label doesn't exist on the form yet (it is dynamically created when they hit the button on the other
form).
Creating the labels on the flowlayoutpanel form, but have them invisible and 'offscreen', then delete them when the new ones are created - this didn't work either, but was promising. I tried to change the label from invisible to visible and move it into
the flowlayoutpanel when the button on the other form is clicked (instead of creating it new). Making it visible is easy, but I couldn't get it to move into the panel.... (this would be a major drag because there about 200 possible labels)....
Any suggestions?
thanks all!