Link to home
Start Free TrialLog in
Avatar of DeniseGoodheart
DeniseGoodheart

asked on

How To Write Select Case Code for SelectedTab Event

Hi,

I'm using VS.NET 2005.  Is it possible to change the following code into a Select Case, and if so how?

 If Me.tabMain.SelectedTab.Equals(Me.tabRework) = True Then
            LoadReworksHistoryGrid()
        End If

        If Me.tabMain.SelectedTab.Equals(Me.tabSalesHistory) = True Then
            LoadSalesGrid()
        End If


        If Me.tabMain.SelectedTab.Equals(Me.tabStock) = True Then
            LoadStockGrid()
        End If


Thanks,
Denise
ASKER CERTIFIED SOLUTION
Avatar of Vaxman2
Vaxman2

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of DeniseGoodheart
DeniseGoodheart

ASKER

Hi Vaxman2:

Many thanks!  It's just what I needed.

Cheers,
Denise