VB Code:
Private Sub tab_25_btnClearAll_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles tab_25_btnClearAll.Click 'Dim ctrl As TabControl = CType(sender, TabControl) 'Client.ClearTabControl(ctrl) 'tab_25_optNo.Checked = True 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.




Reply With Quote