Toolbar on multiple forms

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All

I have an application where I would like to have a toolbar that has 4 or 5 different buttons that switches between forms. This toolbar remains constant on each form and all forms are created when the application starts. What is the best way to do this?

Should I create a primary form that contains the toolbar and then create my forms as modeless so they don't cover the toolbar? I'm not sure if this is even possible. Do I need to create the toolbar on each page and handle the events

Thanks in advance
-Jason
 
Instead of having multiple forms, just have 1 form with multiple panels that
fill the middle area. Then when you press buttons on the toolbar you can
just bring the panel you want to the front.



Jason M said:
Hi All.

I have an application where I would like to have a toolbar that has 4 or 5
different buttons that switches between forms. This toolbar remains constant
on each form and all forms are created when the application starts. What is
the best way to do this?
Should I create a primary form that contains the toolbar and then create
my forms as modeless so they don't cover the toolbar? I'm not sure if this
is even possible. Do I need to create the toolbar on each page and handle
the events?
 
you could also create one MyToolBar class
with each instance sharing a global (and unique) Image list.
and you assign a new instance of this MyToolBar class to each form....

Jason M said:
Hi All.

I have an application where I would like to have a toolbar that has 4 or 5
different buttons that switches between forms. This toolbar remains constant
on each form and all forms are created when the application starts. What is
the best way to do this?
Should I create a primary form that contains the toolbar and then create
my forms as modeless so they don't cover the toolbar? I'm not sure if this
is even possible. Do I need to create the toolbar on each page and handle
the events?
 
Back
Top