Hi!,
I get InvalidCastException.
It says "Unable to cast object of type 'HD.MainMenu' to type 'HD.NewBookEntry'" and points to this statment "mpg=(NewBookEntry)fm"
Plz help me to solve this.
My code is:
FormCollection fms=Application.OpenForms;
foreach(Form fm in fms)
{
mpg=(NewBookEntry)fm;
}
mpg.Dispose();