RichTextBox in Current Tab Function
Posted: Thu Aug 26, 2010 10:08 pm
Hello,
I have a TabControl, and on a button click or Form_Load it adds a tab. I made the RichTextBox detect URLs by setting the property in code when you add a tab. Now, here is my problem. You know how you click a button? It has a function named Button_Click that the program calls. If the button was added at runtime, how could you code what it does when clicked? This is my scenario, except the button is a RichTextBox, and I need to put code in the RichTextBox_LinkClicked event. The RTB was added at runtime, and in a tab. How can I put code in a richtextbox that was added at runtime in a tabcontrol?
Special Thanks to first answerer.
~GoodGuy17
I have a TabControl, and on a button click or Form_Load it adds a tab. I made the RichTextBox detect URLs by setting the property in code when you add a tab. Now, here is my problem. You know how you click a button? It has a function named Button_Click that the program calls. If the button was added at runtime, how could you code what it does when clicked? This is my scenario, except the button is a RichTextBox, and I need to put code in the RichTextBox_LinkClicked event. The RTB was added at runtime, and in a tab. How can I put code in a richtextbox that was added at runtime in a tabcontrol?
Special Thanks to first answerer.
~GoodGuy17
