Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Magic UI Tab control help

Magic UI Tab control help

Scheduled Pinned Locked Moved C#
questioncsharphtmlcomdesign
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Daniel Bright
    wrote on last edited by
    #1

    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 [^]

    H 1 Reply Last reply
    0
    • D Daniel Bright

      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 [^]

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      tabPage.Controls[0].Cut(), assuming your richTextBox1 is the first control on your tab. If you need to find a specific one, just enumerate through the controls in your TabPage.Controls collection and find the Control with the right name or type. This is behavior that all System.Windows.Forms.Control (and System.Web.UI.Control for that matter) exhibit. "Well, I wouldn't say I've been missing it, Bob." - Peter Gibbons

      D 1 Reply Last reply
      0
      • H Heath Stewart

        tabPage.Controls[0].Cut(), assuming your richTextBox1 is the first control on your tab. If you need to find a specific one, just enumerate through the controls in your TabPage.Controls collection and find the Control with the right name or type. This is behavior that all System.Windows.Forms.Control (and System.Web.UI.Control for that matter) exhibit. "Well, I wouldn't say I've been missing it, Bob." - Peter Gibbons

        D Offline
        D Offline
        Daniel Bright
        wrote on last edited by
        #3

        Thanks Heath, Is there an easy way to check for the active control index? DB

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups