When I place Set_Symbol() in my code it give me two errors.
Errors:
Argument not specified for parameter 'e' of 'Private Sub Set_Symbol(sender As Object, e As System.EventArgs)'. d:\documents\visual studio 2010\Projects\Math Game\Math Game\frmindex.vb
Argument not specified for parameter 'sender' of 'Private Sub Set_Symbol(sender As Object, e As System.EventArgs)'. d:\documents\visual studio 2010\Projects\Math Game\Math Game\frmindex.vb
This is what Set_Symbol is:
Private Sub Set_Symbol(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles rbnaddition.Click, rbnsubtraction.Click, rbnmultiplication.Click, rbndivision.Click
Dim rbn As RadioButton
rbn = CType(sender, RadioButton)
symbol = rbn.Tag
End Sub
This is how I called it:
Private Sub frmindex_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
symbolrbn(0) = rbnaddition
symbolrbn(1) = rbnsubtraction
symbolrbn(2) = rbnmultiplication
symbolrbn(3) = rbndivision
Set_Symbol()
Populate()
End Sub
Why is it throwing this error?
Subdefinition requires two parameterssenderandeand you have not supplied it with any duringLoad.