AD
Administrator
Syncfusion Team
November 27, 2002 05:13 PM UTC
Chuck,
You ca use the PopupMenu.SourceControl to determine on which TreeView the context menu was shown.
And yes, please select the node on mouse down, as follows:
private void treeView1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if(e.Button == MouseButtons.Right)
{
treeView1.SelectedNode = treeView1.GetNodeAt (e.X ,e.Y );
}
}
and then use the SelectedNode property.
Regards,
Praveen Ramesh