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

click

P: n/a
I have inhereted a treeview control from another form.

How can I "work" with it?

I would like to put Click EventHandler !

Hrcko
Nov 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
You mean you have a Parent Form (Form1) and an inherited Form(Form2) and the
parent has the tree?

The parent must make the TreeView public or protected so the subclass can
manipulate it. By default the Tree will be created as private so you cannot
access it. If you make it protected or public, then you will be able to
access it as if you had simply dropped it on your Form2

JIM
"Hrvoje Voda" <hr*********@luatech.com> wrote in message
news:d0**********@ls219.htnet.hr...
I have inhereted a treeview control from another form.

How can I "work" with it?

I would like to put Click EventHandler !

Hrcko

Nov 16 '05 #2

P: n/a
The treeView control works fine.

Now, I made a grid control in Form2 and manage to call it and fill it with
data, but when I want to edit a row I get an error that grid from Form2 is
not assignable to grid in another Form(Form3) in witch I do the editing.
What is the way to edit the inherited grid in another Form?

Hrcko
"James" <no****@hypercon.net> wrote in message
news:ee**************@TK2MSFTNGP15.phx.gbl...
You mean you have a Parent Form (Form1) and an inherited Form(Form2) and
the parent has the tree?

The parent must make the TreeView public or protected so the subclass can
manipulate it. By default the Tree will be created as private so you
cannot access it. If you make it protected or public, then you will be
able to access it as if you had simply dropped it on your Form2

JIM
"Hrvoje Voda" <hr*********@luatech.com> wrote in message
news:d0**********@ls219.htnet.hr...
I have inhereted a treeview control from another form.

How can I "work" with it?

I would like to put Click EventHandler !

Hrcko


Nov 16 '05 #3

P: n/a
You need to do that same thing, make all the properties public or protected.
I know this will work because I do the very same sort of thing in my own
code.

JIM
"Hrvoje Voda" <hr*********@luatech.com> wrote in message
news:d0**********@ls219.htnet.hr...
The treeView control works fine.

Now, I made a grid control in Form2 and manage to call it and fill it with
data, but when I want to edit a row I get an error that grid from Form2 is
not assignable to grid in another Form(Form3) in witch I do the editing.
What is the way to edit the inherited grid in another Form?

Hrcko
"James" <no****@hypercon.net> wrote in message
news:ee**************@TK2MSFTNGP15.phx.gbl...
You mean you have a Parent Form (Form1) and an inherited Form(Form2) and
the parent has the tree?

The parent must make the TreeView public or protected so the subclass can
manipulate it. By default the Tree will be created as private so you
cannot access it. If you make it protected or public, then you will be
able to access it as if you had simply dropped it on your Form2

JIM
"Hrvoje Voda" <hr*********@luatech.com> wrote in message
news:d0**********@ls219.htnet.hr...
I have inhereted a treeview control from another form.

How can I "work" with it?

I would like to put Click EventHandler !

Hrcko



Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.