click

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

Hrvoje Voda

I have inhereted a treeview control from another form.

How can I "work" with it?

I would like to put Click EventHandler !

Hrcko
 
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
 
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
 
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
 
Back
Top