By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,567 Members | 1,651 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,567 IT Pros & Developers. It's quick & easy.

objects from another form

P: n/a
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
Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hrvoje Voda wrote:
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
Nov 16 '05 #2

P: n/a
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,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Hrvoje Voda" <hr*********@luatech.com> wrote in message
news:d0*********@ls219.htnet.hr...
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

Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.