Results 1 to 2 of 2

Thread: [RESOLVED] Problem of Mousemove event with run time created label.

  1. #1

    Thread Starter
    Hyperactive Member nUflAvOrS's Avatar
    Join Date
    Jul 2007
    Location
    Malaysia/ Currently at Singapore
    Posts
    372

    Resolved [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
    Where there is no hope, there can be no endeavor.

    There are two ways of rising in the world, either by your own industry or by the folly of others.

  2. #2

    Thread Starter
    Hyperactive Member nUflAvOrS's Avatar
    Join Date
    Jul 2007
    Location
    Malaysia/ Currently at Singapore
    Posts
    372

    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.
    Where there is no hope, there can be no endeavor.

    There are two ways of rising in the world, either by your own industry or by the folly of others.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width