Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

[VB2012] how to disabled a tab from TabControl..

$
0
0
Hi guys,

I have a ComboBox in my program with this code:
Code:


        If ComboBox2.SelectedItem IsNot Nothing Then
            Dim ans1 As Double
            ans1 = ComboBox2.SelectedIndex
            Select Case ans1
                Case -1
                    MessageBox.Show("צורת הגג")
                Case 0
                    Label19.Text = ComboBox2.SelectedItem
                    GRAPH.TabControl1.SelectedIndex = 0

                    GRAPH.Show()
                Case 1
                    Label19.Text = ComboBox2.SelectedItem
                    GRAPH.TabControl1.SelectedIndex = 1
                    GRAPH.Show()
                Case 2
                    Label19.Text = ComboBox2.SelectedItem
                    GRAPH.TabControl1.SelectedIndex = 2
                    GRAPH.Show()
                Case 3
                    Label19.Text = ComboBox2.SelectedItem
                 
            End Select
        End If

It calls another form with tabcontrol .
How can I make with my SelectedIndex = 1 from my tabcontrol - the 2 other tabIndex to be disabled

thanks

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>