In my application, when user adds a new file it adds a new textbox into a new tab. Which that works great. Before I decided to add the multidocument capabilities, I had a contextmenu that became active when the user right clicked the textbox. I still have the code for that which I can re-use I just want to know how I can do the same for my dynamically created textboxes. How do I set it up so I can create a event handler for the dynamic textbox like I would one on design time.