Convert object to Form RRS feed

  • Question

  • Hi,

    I have an System.object which is returned from a method. This object is actually a Windows.Form which is returned by the method.

    I want to unbox this System.object back to Windows.Form. How do I do it ???

    I have already tried :

    Form fm = objVal as Form;
    Form fm = (System.Windows.Forms.Form) objVal;

    Pls help..:)
    Monday, March 30, 2009 7:09 AM

All replies