Re: Forms - Menu Tree Problems

From: Daniel Moth (dmoth74_at_hotmail.com)
Date: 03/03/05


Date: Thu, 3 Mar 2005 21:15:07 -0000

Can you shows us a reproducible sample so we can offer advice based on it.

Cheers
Daniel

--
http://www.danielmoth.com/Blog/
"Tris" <Tris@discussions.microsoft.com> wrote in message 
news:D3889F12-0C72-4DC4-ADAD-0D21C5EDFC31@microsoft.com...
> I've been trying to build a neat menu tree system from forms in the CF 
> that
> is not hard coded into multiple forms, but i've had a great deal of
> difficulty. The requirements of my menu system is that, it is build at
> compile time, the forms are built prior to the application being run, and 
> the
> whole tree is flexible enough to change easily. So i am using a MenuForm,
> with an AddButton method, which takes a MenuForm or a Form, and a string, 
> and
> creates a button that launches the form when it is clicked.
>
> All forms are built when the program starts, and constructed into a menu
> tree, which can then be navigated. I have a number of issues with this:
>
> 1)When i create a form it is displayed instantly, I have to manualy close
> each form after it has been created. Which makes my application look like
> it's having a fit.
>
> 2)As my tree is pre-built, i cannot use Close(), instead, I have to
> implement a Hide event, and wire the parent into that so that it can call
> this.Show().
>
> 3) When Show() is called, all my forms are displayed minimised, even if I
> immediately set the windowstate to maximised.
>
>
> Basicaly, I don't want to hard code my menu tree. And this solution, while
> perfectly valid in conventional .Net is giving me no end of headaches in 
> the
> CF framework. (I've only been using the CF framework for about a week and 
> a
> half, and i'm hitting all kinds of hiccups).
>
> Can anyone help with this issue?
>
> Cheers
>
> Tris
>
> Tris