I have a TreeView that uses a ContextMenu. What I need to do it Enable/Disable certain items in the ContextMenu based on what is selected in teh TreeView. Problem is, that I am finding it difficult to find where the proper place is to place my code. When the user Right-Clicks, the ContectMenu pops up before my code to Enable/Disable its items can run. I tried TreeView_AfterSelect, TreeView_BeforeSelect, TreeView_Click, TreeView_MouseUp and ContectMenu_PopUp.
________________________
Ben Santiago, MCP & A+
Programmer Analyst (SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS)
Eastern Suffolk BOCES - Student Data Services
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
-Rich Cook