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. Omit selected tab and Dispose() Rtb

Omit selected tab and Dispose() Rtb

Scheduled Pinned Locked Moved C#
question
5 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.
  • B Offline
    B Offline
    Baeltazor
    wrote on last edited by
    #1

    Hey all! :D I was just wondering if I should dispose of the dirty little RichTextBox control contained within the Selected TabPage that I will be removing? Or does that somehow just "magically" happen automatically? I searched on msdn and google (i did see code that disposes rtb's) but i couldn't find anything that says that it's neccessary? thank you jay p.s. <--- what does P.S stand for? and... does anybody know of a better way to remove a selected tab page other than:

    if( Tc.TabPages.Count >= 1 )
    {
    Tc.TabPages.Remove(Tc.SelectedTab);
    } // Tc = tabControl1

    I 1 Reply Last reply
    0
    • B Baeltazor

      Hey all! :D I was just wondering if I should dispose of the dirty little RichTextBox control contained within the Selected TabPage that I will be removing? Or does that somehow just "magically" happen automatically? I searched on msdn and google (i did see code that disposes rtb's) but i couldn't find anything that says that it's neccessary? thank you jay p.s. <--- what does P.S stand for? and... does anybody know of a better way to remove a selected tab page other than:

      if( Tc.TabPages.Count >= 1 )
      {
      Tc.TabPages.Remove(Tc.SelectedTab);
      } // Tc = tabControl1

      I Offline
      I Offline
      IceWater42
      wrote on last edited by
      #2

      I'll let Yogi Berra help you with this one ... hehe "ps: stands for post script ... which is what you say after you are through saying what you said before you said what you said"

      B 1 Reply Last reply
      0
      • I IceWater42

        I'll let Yogi Berra help you with this one ... hehe "ps: stands for post script ... which is what you say after you are through saying what you said before you said what you said"

        B Offline
        B Offline
        Baeltazor
        wrote on last edited by
        #3

        haha thanks mate, i knew why people said p.s i was just unaware of what the letters actually stood for lol :-D

        I 1 Reply Last reply
        0
        • B Baeltazor

          haha thanks mate, i knew why people said p.s i was just unaware of what the letters actually stood for lol :-D

          I Offline
          I Offline
          IceWater42
          wrote on last edited by
          #4

          oh .. hehehe .. guess you didn't need Yogi's help ... lol My favorite yogiism (though he says he never said it) is: "Nobody goes to that restaurant anymore because it is always so crowded" ... lol Good luck with your Disposal problem ... neither Yogi nor i can help you with that.

          B 1 Reply Last reply
          0
          • I IceWater42

            oh .. hehehe .. guess you didn't need Yogi's help ... lol My favorite yogiism (though he says he never said it) is: "Nobody goes to that restaurant anymore because it is always so crowded" ... lol Good luck with your Disposal problem ... neither Yogi nor i can help you with that.

            B Offline
            B Offline
            Baeltazor
            wrote on last edited by
            #5

            hehe thanks :) yogii's fun i like him lol

            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