Anyone knows how to solve this?
function 'Validate' shadows an overloadable member declared in the base class 'ContainerControl'. If you want to overload the base method, this method must be declared 'Overloads'.
While it doesn't really do much to the data that is sent to the database, it still bugs me that there is that kind of error in the program. Here's the code where the overload manifests:
Code:Private Function Validate(ByVal patrontypename As String) As Boolean If patrontypename = "" Then MsgBox("Please fill up all of the required fields.", MsgBoxStyle.Information, "Required Fields Missing") txtPatronTypeName.Focus() dbConn.Close() Return False Else Return True End If End Function




Reply With Quote