A wee bit of help with Forms..
Hey chaps,
I've got a form (called frmPop) and as one of it's members theres a form called frmTest. I want to show frmtTest under certain conditions but it wont show ??
Any help please ?
Code:
frmT = new frmTest();
frmT.TopLevel = false;
frmT.Parent = this;
if (dbx.sysVars.Testmode > 0)
{
frmT.Show();
}
Thanks alot.
Chubby.
Re: A wee bit of help with Forms..
Are you meeting the condition you've set?
Re: A wee bit of help with Forms..
Yes, to set the parent object I have set TopLevel to false or I get an error, but I need TopLevel to be true to see the form, a work-around is to bot set the parent but create a bespoke object on the frmT and set that, but was hoping to use the Parent Object syntax...
Thanks for the reply.
Chubby.