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. Clear a tab contents when i switch tabs

Clear a tab contents when i switch tabs

Scheduled Pinned Locked Moved C#
csharpvisual-studioquestion
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.
  • A Offline
    A Offline
    alfie max15
    wrote on last edited by
    #1

    I have a form in which i an using tab control. There are three tabs and in each tab there are textboxes. What i want to achieve is that when i switch from tab 1 to tab 2. All the textboxes of tab 1 should be cleared. Is it possible??? I am using Visual studio 2013, .NET 4.5, C#

    J 1 Reply Last reply
    0
    • A alfie max15

      I have a form in which i an using tab control. There are three tabs and in each tab there are textboxes. What i want to achieve is that when i switch from tab 1 to tab 2. All the textboxes of tab 1 should be cleared. Is it possible??? I am using Visual studio 2013, .NET 4.5, C#

      J Offline
      J Offline
      Jay Nardev
      wrote on last edited by
      #2

      Check the active index of tab on tab click and set the text box blank.

      A 1 Reply Last reply
      0
      • J Jay Nardev

        Check the active index of tab on tab click and set the text box blank.

        A Offline
        A Offline
        alfie max15
        wrote on last edited by
        #3

        Thnx... I did consider your suggestion and used tab Deselecting event.... Thnx again...

        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