objects from another form

  • Thread starter Thread starter Hrvoje Voda
  • Start date Start date
H

Hrvoje Voda

I made a group of objects(treeview, grid, buttons) in one form.
NOw, I would like to "call" that objects with properties that I declared in
that form , to appear in the another form.

In that way I can use an objects that I made only ones in every form!
How?

Something like Controls.Add ...

Hrcko
 
Hrvoje said:
I made a group of objects(treeview, grid, buttons) in one form.
NOw, I would like to "call" that objects with properties that I declared in
that form , to appear in the another form.

In that way I can use an objects that I made only ones in every form!
How?

Something like Controls.Add ...

Hrcko


have a look into
private void InitializeComponent()
of the form
 
hi,

you can access the controls if you declare them public and you hold a
reference to that other form.

you cannot show the same control in two forms. you could try to duplicate it
or just show the same data in both controls.


cheers,
 
Back
Top