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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top