Dynamically (programatically) adding check boxes and checkedchanged events

前端 未结 8 495
情歌与酒
情歌与酒 2020-12-19 18:21

I am having a bit of a problem adding a few check boxes and an event handler programatically. The check boxes all appear fine, but they don\'t do anything when clicked. Does

8条回答
  •  爱一瞬间的悲伤
    2020-12-19 18:48

    If you have one Instructions textbox and one WorkPlaceHazards textbox per checkbox, then you have to have a way to associate the checkbox that was clicked with those other two controls.

    If that's not the case, then what are they supposed to be doing?

提交回复
热议问题