Board index » cppbuilder » WindowState is not a member of TForm?
Tom Byars
CBuilder Developer |
WindowState is not a member of TForm?2008-02-06 08:27:14 PM cppbuilder114 I'm trying to get a bcb6 app to run under bcb 2007. In bcb2007 I've set a breakpoint in the FormShow method of the main form. In the IDE I've set MainForm->WindowState = wsMaximized. When I inspect MainForm->WindowState at the MainForm->FormShow breakpoint it returns wsNormal (in bcb6 it returns wsMaximized at the same point). Why is this and why does evaluating MainForm->WindowState return the error "WindowState is not a member of MainForm"? In fact MainForm->Width returns a similar message. The only way to get the values of these properties is to open an Inspector window for MainForm. |