Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

'tabpages' is not a member of 'System.Windows.Controls.TabControl'.

$
0
0

Sorry for this simple question as i'm new in WPF and vb.net.

I'm getting the error message: 'tabpages' is not a member of 'System.Windows.Controls.TabControl'.

when i want to call the tabpages.

Below is my code:

 Dim _tabpages As TabPage



        For Each _tabpages In MyTabControl.tabpages


            For Each ctrl In tp.Controls

                If (ctrl.GetType() Is GetType(TextBox)) Then
                    txt = CType(ctrl, TextBox)

                    txt.Text = ""

                End If

            Next

        Next

Thanks.


Viewing all articles
Browse latest Browse all 18858

Trending Articles