Windows Develop Bookmark and Share   
 index > Windows Forms General > Treeview Issues
 

Treeview Issues

I have an "afterSelect" event as so:

private void activeMalfunctions_treeView_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e)

Within this event I have:

if(activeMalfunctions_treeView.SelectedNode.IsSelected == true)

Essentially what I need is this; I need a set of buttons to become Enabled ONLY when the user selects on a node within the treeview.  The method I have used doesn't seem to care if there is a node selected or not.  Any help would be much appreciated.  Thanks in advance.

Playmaker81  Monday, September 26, 2005 2:52 PM
The AfterSelect is only called when an item is selected. If the treenode loose selection, AfterSelect will not be called.
ThE_lOtUs  Monday, September 26, 2005 6:28 PM
The AfterSelect is only called when an item is selected. If the treenode loose selection, AfterSelect will not be called.
ThE_lOtUs  Monday, September 26, 2005 6:28 PM

You can use google to search for other answers

Custom Search

More Threads

• Urgent problem with Application.Idle in C++/CLI Project
• Updating DataSEt
• What is the KeyCode for the num pad Delete?
• Mixed application console/windows.forms??
• when i menimised the form it should not appear in the toolbar
• regarding merging of child menubar with parent in MDI having same menu item
• Change the check mark color of a checkbox
• Strange Invocation Exception...?
• How to show the changed Text while loading?
• User Control top left problem in panel.