Getting the Control's ID

Results 1 to 2 of 2

Thread: Getting the Control's ID

  1. #1
    Join Date
    Dec 1969

    Default Getting the Control's ID

    I am trying to figure out how to identify the ID of the control that initiates a Sub. For example, say I have ten checkboxes with different ID's. Each time one of them is checked, a Sub is called. But how can I determine which, out of the 10, checkboxes were checked? In other words, how do I retrieve the ID of control that was checked? Thanks for your help.

  2. #2
    Join Date
    Dec 1969

    Default RE: Getting the Control's ID

    I believe that you should have something like: <BR>Sub nameofsub(byval sender as object, e as eventargs)<BR><BR><BR>You should be able to access any of the attributes of the calling object from the eventargs.<BR><BR>So: <BR><BR>e.Item.ID <BR><BR>or something along those lines<BR><BR>Hope this helps.<BR><BR>Bryce

Posting Permissions

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