 |
GTK+ Forums Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
|
|
|
| Author |
Message |
|
|
clash Familiar Face
Joined: 17 Jan 2007 Posts: 5
|
Posted: Tue Jan 23, 2007 12:44 pm Post subject: TreeView Again .... |
|
|
Ok, i have a method called OnSelectionChanged to grab the change of selection in the treeview. I am listening/calling this method by "treeView.Selection.Changed += OnSelectionChanged;"
I have 2 files, Main.cs which starts up the second window, MainWindow.cs. All the code is in MainWindow.cs.
Theres an example for this event in the monodocs and the ONLY difference (to at very least get into the method OnSelectionChanged) is that i am calling treeView.Selection.Changed .. etc in my "Public MainWindow" whereas in the example it is getting called inside a "Static Void Main".
As far as i'm concerned from a C# perspective this should be working ...
Is there something special about calling this listener/event from static void main and not from "public MainWindow" in my mainWindow.cs file ? |
|
| Back to top |
|
 |
Micah Carrick Never Seen the Sunlight
Joined: 21 Sep 2005 Posts: 427 Location: Portland, OR USA
|
Posted: Tue Jan 23, 2007 7:49 pm Post subject: |
|
|
| This time I can't help you because I typically work in C. |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group CodeBB 1.0 Beta 2
|