Question about tab control

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gggram2000
    New Member
    • Nov 2007
    • 97

    Question about tab control

    Hi, Im using microsoft visual studio 2005 in C#.

    I have an issue with a form which contains a tab control, the reason is because when i switch from tabs or move about them...there is some data that is read from the database that is supposed to be refreshed so that it displays it. But when I update a tab then move to the next tab it does not...then i try double-clicking on tabs so that I can enter code when switching between tabs but it doesnt give me the option. Any Help will be appreciated! (Just need to refresh the form)
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    It sounds like you are having trouble durring the designer time, and not while running yes?
    Are you saying that you cannot change the tabs in the designer to put other widgets on them?

    Comment

    • gggram2000
      New Member
      • Nov 2007
      • 97

      #3
      Originally posted by Plater
      It sounds like you are having trouble durring the designer time, and not while running yes?
      Are you saying that you cannot change the tabs in the designer to put other widgets on them?
      Yeah...basicall y if I could in the designer be able to have like on change of tab evokation I would be able to like reset all values on the next tab to sort of refresh it yes.

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        Well I don't think there is anything you can do while designing it.
        BUT, while running, there is a tabchanged and tabfocus(or something like that) events that can be used to refresh data when the tab is switched to them

        Comment

        • gggram2000
          New Member
          • Nov 2007
          • 97

          #5
          Originally posted by Plater
          Well I don't think there is anything you can do while designing it.
          BUT, while running, there is a tabchanged and tabfocus(or something like that) events that can be used to refresh data when the tab is switched to them
          Yeah I realized I had to create an event handler so that anytime tabpage changes it refreshes the form. Thanks for the help

          Comment

          Working...