Panel

Discussion in 'Questions (Windows Mobile)' started by Georg, Aug 5, 2008.

  1. Georg

    Georg Member Licensed User

    When i click on a control in a panel i can get the name of the controll with "sender" how can i get the name of the panel in the sub when i clicked on a controll in a panel
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You can create an ArrayList for each panel and add the panels controls to the ArrayList.
    Assuming that there are only a couple of panels in your project, you can use something like:
    Code:
    'for each panel:
    if ArrayList.IndexOf(sender) > -1 then ...
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice