dcsimg
Results 1 to 3 of 3

Thread: [RESOLVED] How can detect which dynamic CommandButton was pressed?

Hybrid View

  1. #1

    Thread Starter
    Lively Member sergeos's Avatar
    Join Date
    Apr 2009
    Location
    Belarus
    Posts
    119

    Resolved [RESOLVED] How can detect which dynamic CommandButton was pressed?

    Hi,
    I create some textboxes and the button dynamically in form.
    Name:  output_ySlbmX.gif
Views: 127
Size:  83.4 KB

    Please recommend a solution for defining textboxes on the line on which the button was pressed.

    Also,a quick example of project here:
    uc_test.zip
    Ten Years After - 01 You Give Me Loving

  2. #2
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    7,190

    Re: How can detect which dynamic CommandButton was pressed?


  3. #3
    Frenzied Member
    Join Date
    Feb 2017
    Posts
    1,902

    Re: How can detect which dynamic CommandButton was pressed?

    Quote Originally Posted by sergeos View Post
    Hi,
    I create some textboxes and the button dynamically in form.
    Name:  output_ySlbmX.gif
Views: 127
Size:  83.4 KB

    Please recommend a solution for defining textboxes on the line on which the button was pressed.

    Also,a quick example of project here:
    uc_test.zip
    The "proper" way to handle that is using arrays and not dynamically creating controls.
    The code will be simpler and will avoid confusion.

    Nonetheless, it can be done with your current approach and attached is an example that adds a couple of classes to handle the events.
    Attached Files Attached Files

Tags for this Thread

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width