In Form1.cs I have defined the "InstituteAdministrator"
class which contains ListView "listViewAddress". In a second
file (FormTreeView.cs) I have the class FormTreeView with
the method "dataTreeView1_AfterSelect". When the user
selects a node in the treeview, then listViewAddress should
be filled and displayed with the corresponding addresses.
As long as I keep the whole thing in one file, it works
fine, but not with two files and two classes.
I want to use dotnetmagic.com's libraries, which come with
this two-files example for docking.
First I created a method within the InstituteAdministrator
class which establishes the database connection and fills
the listview. Within FormTreeView class I made a reference
to the Institute Administrator class and called the filling
method I defined, passing "e.Node.Tag.ToString()" as
parameter to the method.
The program seemed to work, however the data is not
displaying in the listview. Since then I'm trying out (try
and error...). So far I did not find sufficient information
in books or online examples to help me to understand what is
going on. (needless to say that I'm a newbie)
Which are the steps to make this work? Any hints, anyone?
Link to screenshots and source-files:
http://www.osswald.com/vstudio/
Direct link to source files (flash-paper prints):
http://www.osswald.com/vstudio/images/form1.cs.swf
http://www.osswald.com/vstudio/image...reeView.cs.swf
Thanks, Oliver