Tab Pages

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • amir

    Tab Pages

    Hello all,
    I have a little problem.
    I have created a form and on it a tabControl.
    to the tab control i am adding pages dynamically with a class of my
    own which is called myTabPage which contains a TabPage with my own
    setups (textboxs and so on...) now i want when a tab is selected and
    then a save button is pressed to retrieve the new data from the tab so
    i can save it. For some reason i dont know how to catch my tab... not
    with this.
    dont know how to reach the page.
    i know to catch the selectedTab but it sends me a tab page which does
    not contain the fields that are in my tabPage.
    thnx,
    amir.

  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Tab Pages

    Amir,

    If you are not looking to save the information on the selected tab page,
    then which tab page are you looking to save the information for?


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "amir" <mogets@gmail.c omwrote in message
    news:1175442615 .347120.319030@ o5g2000hsb.goog legroups.com...
    Hello all,
    I have a little problem.
    I have created a form and on it a tabControl.
    to the tab control i am adding pages dynamically with a class of my
    own which is called myTabPage which contains a TabPage with my own
    setups (textboxs and so on...) now i want when a tab is selected and
    then a save button is pressed to retrieve the new data from the tab so
    i can save it. For some reason i dont know how to catch my tab... not
    with this.
    dont know how to reach the page.
    i know to catch the selectedTab but it sends me a tab page which does
    not contain the fields that are in my tabPage.
    thnx,
    amir.
    >

    Comment

    • amir

      #3
      Re: Tab Pages

      On Apr 2, 6:14 pm, "Nicholas Paldino [.NET/C# MVP]"
      <m...@spam.guar d.caspershouse. comwrote:
      Amir,
      >
      If you are not looking to save the information on the selected tab page,
      then which tab page are you looking to save the information for?
      >
      --
      - Nicholas Paldino [.NET/C# MVP]
      - m...@spam.guard .caspershouse.c om
      >
      "amir" <mog...@gmail.c omwrote in message
      >
      news:1175442615 .347120.319030@ o5g2000hsb.goog legroups.com...
      >
      >
      >
      Hello all,
      I have a little problem.
      I have created a form and on it a tabControl.
      to the tab control i am adding pages dynamically with a class of my
      own which is called myTabPage which contains a TabPage with my own
      setups (textboxs and so on...) now i want when a tab is selected and
      then a save button is pressed to retrieve the new data from the tab so
      i can save it. For some reason i dont know how to catch my tab... not
      with this.
      dont know how to reach the page.
      i know to catch the selectedTab but it sends me a tab page which does
      not contain the fields that are in my tabPage.
      thnx,
      amir.- Hide quoted text -
      >
      - Show quoted text -
      I am looking for saving the information on the tab pages.

      Comment

      Working...