Note that there are some explanatory texts on larger screens.

plurals
  1. POVisual Basic: is there a way to consolidate 7 click-events that call the same sub procedure?
    primarykey
    data
    text
    <p>My intention is to have calculated labels clear anytime a new radio button is selected. Currently, I'm doing that with 7 separate click-events calling the same sub procedure, like so:</p> <pre><code>' the following 7 subprocedures clear totals boxes if any radio button is changed Private Sub rbCappuccino_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles rbCappuccino.CheckedChanged Call ClearLabels() End Sub Private Sub rbChocolate_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles rbChocolate.CheckedChanged Call ClearLabels() End Sub Private Sub rbFilled_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles rbFilled.CheckedChanged Call ClearLabels() End Sub Private Sub rbGlazed_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles rbGlazed.CheckedChanged Call ClearLabels() End Sub Private Sub rbNone_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles rbNone.CheckedChanged Call ClearLabels() End Sub Private Sub rbRegular_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles rbRegular.CheckedChanged Call ClearLabels() End Sub Private Sub rbSugar_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles rbSugar.CheckedChanged Call ClearLabels() End Sub </code></pre> <p>I'm curious as to whether or not there is a way to consolidate these events given they all call the exact same sub procedure. Any advice would be appreciated. Thanks!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload