I'm using a showmodal option to pop up a form to use as a default settings entry screen. Everything was working fine until I decided to add another tabsheet to the mix, now when I access the screen for the first time it works fine but closing it and reopening it causes a crash if the second tabsheet is left up. First I get a window with a EInvalidOperati exception and if I tell it to continue I get a popup saying cannot focus a disabled or invisible window. Seems like something is not getting reset the second time through. Also if I leave the second tab up on the edit window and compile and run the program I get the same errors right away instead of getting the first tabsheet. I guess I'm missing something either on the second sheet or a setting that would set the first tabsheet as the default. I tried to setfocus on the first tabsheet with the formshow event but I still get a crash.
What am I missing.
Bill