VB Code:
  1. Private Sub tab_25_btnClearAll_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _
  2.     Handles tab_25_btnClearAll.Click
  3.  
  4.         'Dim ctrl As TabControl = CType(sender, TabControl)
  5.  
  6.         'Client.ClearTabControl(ctrl)
  7.         'tab_25_optNo.Checked = True
  8.  
  9.     End Sub

the error is :"Specified cast is not allowed.

here's what's going on: option strict is on. when I hit F5, I get build errors and I chooses 'yes' to continue (I think that's the problem) then, when I click this button, I get the error. Notice that the code inside the routine is commented out. the error highlights the sub declaration section.