what is the purpose of command name and command argument for a control example button?

后端 未结 7 1623
孤街浪徒
孤街浪徒 2021-02-07 09:57

what is the purpose of command name and command argument for a control example button? when should we go for this?

7条回答
  •  耶瑟儿~
    2021-02-07 10:37

    This allows you to pass additional parameters to a buttons Command event method identifying the button that called a method. This allows you to have multiple buttons that share similar functionality on your form using the same method when they are clicked rather than implementing a separate click event method for each button.

提交回复
热议问题