Open Form Based On Table Value
Posted on 2007-11-16
I have a form with a combo on it that cross refrences which form to open based on the selection. I have this half working. It does the sql connection and looks up the value but stops and gives an error at the Show refrence in my code
I keep getting an error of
Unable to cast object of type 'system string' to type 'System.Windows.Forms.IWin32Window'.
so I think that it is having trouble taking the value from my table, which is the actual form name to open and translating to mytablevalue.show()