Results 1 to 5 of 5

Thread: [RESOLVED] [2005] Tabcontrol Q

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    Köln
    Posts
    395

    Resolved [RESOLVED] [2005] Tabcontrol Q

    Greetings,

    is there a way to give different messages during the MouseMove event depending of the tab the mous is moving over.

    e.g. I have a tabControl with 3 tabs. what I like to achive is the following.

    If the mouse is over the tab1 ther should a short text be displayed what is possible to do on this tab. same for the other tabs.

    thx in advance

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: [2005] Tabcontrol Q

    I'd suggest setting the ToolTipText of each TabPage.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    Köln
    Posts
    395

    Re: [2005] Tabcontrol Q

    Quote Originally Posted by jmcilhinney
    I'd suggest setting the ToolTipText of each TabPage.
    Sorry jmcilhinney, but this works only if the tab is selected. The displaying of the text is not a problem.

    What i try is: during the move over the different tabs the discription for each tab is displayed, so the user know what each tab is containing.

    Maybe during my lack of english i have not properly discribed what i want.

    On a Tabcontroll i have 3 Tabs
    By default the first TabPage is displayed.
    If the User is now moving the mouse over the second tab the mousemove event should reconice that he is now over Tab2 and so on.

    in pseudocode i would define the solution like

    on TabControll_MouseMove
    if mouse is over tab1 then display text1
    if mouse is over tab2 then display text2
    if mouse is over tab3 then display text3

    but how do i know over which tab the mouse is???
    Last edited by Bongo; May 5th, 2007 at 08:52 AM.

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: [2005] Tabcontrol Q

    Follow the advice I have already provided. The ToolTipText fpr a TabPage is displayed when you mouse over the tab, whether that page is selected or not.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    Köln
    Posts
    395

    Re: [RESOLVED] [2005] Tabcontrol Q

    thanks jmcilhinney

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width