G
Guest
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
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