Hello every one . I have a piece code in VB.net which work perfectly. but now i convert that code to C# Which give me the follwing error.
"No suitable Method found to override"
my VB.Net Code is Here
Protected Overrides Sub onload(ByVal e As EventArgs)
startPosX = Screen.PrimaryScreen.WorkingArea.Width - 330
startPosY = Screen.PrimaryScreen.WorkingArea.Height
SetDesktopLocation(startPosX, startPosY)
MyBase.OnLoad(e)
Timer1.Start()
End Sub
and here is converted code
protected override void onload(EventArgs e)
{
startPosX = Screen.PrimaryScreen.WorkingArea.Width - 330;
startPosY = Screen.PrimaryScreen.WorkingArea.Height;
SetDesktopLocation(startPosX, startPosY);
base.OnLoad(e);
Timer1.Start();
}
The onload
give the error.