Magic UI Tab control help
-
I am creating a simple tabbed text editor using the Magic .NET UI bits [http://www.dotnetmagic.com[^]]. My question is how do I programmaticly manipulate opjects that are on the tabs I create? In a non-tabbed form I would use:
richTextBox1.Cut(); //or richTextBox1.Copy();
but I cannot figure out how I can get to the textbox inside a tabControl page. Im sure that this is probably simple, but I cant find it. Any help would be greatly appreciated. I looked at the documentation here: http://www.dotnetmagic.com/articles.html[^]but I couldnt make any sense out of it. You can find the test project I'm experimenting with here: http://www.exceed-tech.com/misc/TabTest1.zip [^] -
I am creating a simple tabbed text editor using the Magic .NET UI bits [http://www.dotnetmagic.com[^]]. My question is how do I programmaticly manipulate opjects that are on the tabs I create? In a non-tabbed form I would use:
richTextBox1.Cut(); //or richTextBox1.Copy();
but I cannot figure out how I can get to the textbox inside a tabControl page. Im sure that this is probably simple, but I cant find it. Any help would be greatly appreciated. I looked at the documentation here: http://www.dotnetmagic.com/articles.html[^]but I couldnt make any sense out of it. You can find the test project I'm experimenting with here: http://www.exceed-tech.com/misc/TabTest1.zip [^]tabPage.Controls[0].Cut()
, assuming yourrichTextBox1
is the first control on your tab. If you need to find a specific one, just enumerate through the controls in yourTabPage.Controls
collection and find theControl
with the right name or type. This is behavior that allSystem.Windows.Forms.Control
(andSystem.Web.UI.Control
for that matter) exhibit. "Well, I wouldn't say I've been missing it, Bob." - Peter Gibbons -
tabPage.Controls[0].Cut()
, assuming yourrichTextBox1
is the first control on your tab. If you need to find a specific one, just enumerate through the controls in yourTabPage.Controls
collection and find theControl
with the right name or type. This is behavior that allSystem.Windows.Forms.Control
(andSystem.Web.UI.Control
for that matter) exhibit. "Well, I wouldn't say I've been missing it, Bob." - Peter GibbonsThanks Heath, Is there an easy way to check for the active control index? DB