RSS Forums RSS

TabbedControl Search

Please support our VB.NET advertiser: DiscountASP.NET – 3 Months Free on VB.NET Web Hosting
Reply
Posts: 92
Reputation: bharanidharanit is an unknown quantity at this point 
Solved Threads: 2
bharanidharanit bharanidharanit is offline Offline
Junior Poster in Training

TabbedControl Search

  #1  
Dec 9th, 2008
Hello sir,
I am using Visual studio 2005.
I am having more link labels on a form under a tabbed control.
I want to search for certain linklabels in a form. So i used the coding below, But it is displaying the search in the corresponding tabs itself. But i want my search to be displayed in new tab under the same tabbed control.
Can anyone help me in this?
Private Sub Button1_Click( _
    ByVal sender As System.Object, _
    ByVal e As System.EventArgs _
) Handles Button1.Click
 
 
        For Each page As TabPage In Me.TabControl1.TabPages
            For Each ctl As Control In page.Controls
                If TypeOf ctl Is LinkLabel Then
                    ctl.Visible = (ctl.Text.IndexOf(txtSearch.Text, StringComparison.CurrentCultureIgnoreCase) <> -1)
                End If
            Next
        Next
    End Sub
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Other Threads in the VB.NET Forum
Views: 204 | Replies: 0 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 10:56 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC