Results 1 to 4 of 4

Thread: What happened to TabControl_Deselecting Event in 2005?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2009
    Location
    Boston, MA
    Posts
    226

    What happened to TabControl_Deselecting Event in 2005?

    Just curious, but I was looking to do some simple manipulations of variables based on what tab was selected.

    But I dont see Deselected, Or Selecting as in this example, does 2005 use somthing different?

    vb Code:
    1. Private Sub TabControl1_Deselecting(ByVal sender As System.Object, ByVal e As System.Windows.Forms.TabControlCancelEventArgs) Handles TabControl1.Deselecting
    2.     someClassLevelVariable = e.TabPageIndex
    3. End Sub

    vb Code:
    1. Private Sub TabControl1_Selecting(ByVal sender As System.Object, ByVal e As System.Windows.Forms.TabControlCancelEventArgs) Handles TabControl1.Selecting
    2.     If (e.TabPageIndex = 1) Then
    3.         e.Cancel = True
    4.     End If
    5. End Sub

  2. #2
    Master Of Orion ForumAccount's Avatar
    Join Date
    Jan 2009
    Location
    Canada
    Posts
    2,802

    Re: What happened to TabControl_Deselecting Event in 2005?

    Don't see it where? The TabControl still has the Selecting/Deselecting events in 2005/2008. TabControl <events>

  3. #3
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    3,826

    Re: What happened to TabControl_Deselecting Event in 2005?

    The control and each page has a Enter and Leave event. That should be what you're looking for.
    CodeBank contributions: Process Manager, Temp File Cleaner

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    May 2009
    Location
    Boston, MA
    Posts
    226

    Re: What happened to TabControl_Deselecting Event in 2005?

    OK, thanks guys let me have another look at this.....

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