Results 1 to 3 of 3

Thread: A wee bit of help with Forms..

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2004
    Posts
    308

    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.

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: A wee bit of help with Forms..

    Are you meeting the condition you've set?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2004
    Posts
    308

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width