The normal way I'd done this:

vb Code:
  1. Private Sub Beep()
  2.     '
  3. End Sub
  4.  
  5. Private Sub CloseForm()
  6.     Me.Close()
  7. End Sub
  8.  
  9. Private Sub WhateverElse()
  10.    ' Whatever else
  11. End Sub
  12.  
  13.  
  14. Private Sub Button1_Click(ByVal sender As Object, e As EventArgs) Handles Button1.Click
  15.     Select Case TextBox1.Text
  16.         Case "1"
  17.             Beep()
  18.         Case "2"
  19.             CloseForm()
  20.         Case "3"
  21.             WhatEverElse()
  22.     End Select
  23. End Sub


The awkwards way you'd want to do it:
vb Code:
  1. Private currentHandler As EventHandler
  2.  
  3. Private Sub Beep(ByVal sender As Object, ByVal e As EventArgs)
  4.         '
  5. End Sub
  6.  
  7. Private Sub CloseForm(ByVal sender As Object, ByVal e As EventArgs)
  8.     Me.Close()
  9. End Sub
  10.  
  11. Private Sub WhateverElse(ByVal sender As Object, ByVal e As EventArgs)
  12.     ' Whatever else
  13. End Sub
  14.  
  15. Private Sub Button2_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button2.Click
  16.     If Not (IsNothing(currentHandler)) Then
  17.         RemoveHandler Button1.Click, currentHandler
  18.     End If
  19.     Select Case TextBox1.Text
  20.         Case "1"
  21.             currentHandler = New EventHandler(AddressOf Me.Beep)
  22.             AddHandler Button1.Click, currentHandler
  23.         Case "2"
  24.             currentHandler = New EventHandler(AddressOf Me.CloseForm)
  25.             AddHandler Button1.Click, currentHandler
  26.         Case "3"
  27.             currentHandler = New EventHandler(AddressOf Me.WhateverElse)
  28.             AddHandler Button1.Click, currentHandler
  29.     End Select
  30. End Sub