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. Visual Basic
  4. How to show message After tabpage is displayed in vb.net??

How to show message After tabpage is displayed in vb.net??

Scheduled Pinned Locked Moved Visual Basic
questioncsharptutorial
5 Posts 3 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
    Andraw Tang
    wrote on last edited by
    #1

    Hi, I have a form with TabControl object at which there are 5 tabpages What I want to do is that when user click the tab, the new tabpage is showing on form, at this time I want to show some message use msgbox "". Now I use TabControl1_Selected event, the message is always shown before the actually tabpage is displayed, I want the message is shown after tabpage is displayed. How can I do it? Thanks!

    L H 2 Replies Last reply
    0
    • A Andraw Tang

      Hi, I have a form with TabControl object at which there are 5 tabpages What I want to do is that when user click the tab, the new tabpage is showing on form, at this time I want to show some message use msgbox "". Now I use TabControl1_Selected event, the message is always shown before the actually tabpage is displayed, I want the message is shown after tabpage is displayed. How can I do it? Thanks!

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      The Selected event may be the wrong one. IMO you should use the SelectedIndexChanged event, and wire it after the Form is completely ready, i.e. in its Shown handler. :)

      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

      Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

      A 1 Reply Last reply
      0
      • A Andraw Tang

        Hi, I have a form with TabControl object at which there are 5 tabpages What I want to do is that when user click the tab, the new tabpage is showing on form, at this time I want to show some message use msgbox "". Now I use TabControl1_Selected event, the message is always shown before the actually tabpage is displayed, I want the message is shown after tabpage is displayed. How can I do it? Thanks!

        H Offline
        H Offline
        Henry Minute
        wrote on last edited by
        #3

        You might also try handling the TabPage.Enter event.

        Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

        A 1 Reply Last reply
        0
        • H Henry Minute

          You might also try handling the TabPage.Enter event.

          Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

          A Offline
          A Offline
          Andraw Tang
          wrote on last edited by
          #4

          Thanks for reply! TabPage.Enter event doesn't work.

          1 Reply Last reply
          0
          • L Luc Pattyn

            The Selected event may be the wrong one. IMO you should use the SelectedIndexChanged event, and wire it after the Form is completely ready, i.e. in its Shown handler. :)

            Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum

            Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.

            A Offline
            A Offline
            Andraw Tang
            wrote on last edited by
            #5

            Thanks! SelectedIndexChanged event works if the tabpage is not the first one. If the tabpage is the first page (index = 0), the message still cannot be shown.

            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