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.