[RESOLVED] Problem of Mousemove event with run time created label.
Hi all,
I created label control in runtime, when the form loaded. I will add the label depend on database record. The Label Name is unique. The label called together with withevents because i want to use mousemove and mouseup event when the label on focus.
Problem is here.
I declare my label in private. Thus, the Label name is the last loaded label name. Because of this, I only can access events for last label Control.
How to call the other Label Control Event ?
Hope someone can help me thanks a lot
Re: Problem of Mousemove event with run time created label.
I have been solved the problem by using Load(Object) instead of Controls.Add to create a dynamic control array for label. Thus, i can access the label events.