TabbedControl Search

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2008
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

 
0
  #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?
  1. Private Sub Button1_Click( _
  2. ByVal sender As System.Object, _
  3. ByVal e As System.EventArgs _
  4. ) Handles Button1.Click
  5.  
  6.  
  7. For Each page As TabPage In Me.TabControl1.TabPages
  8. For Each ctl As Control In page.Controls
  9. If TypeOf ctl Is LinkLabel Then
  10. ctl.Visible = (ctl.Text.IndexOf(txtSearch.Text, StringComparison.CurrentCultureIgnoreCase) <> -1)
  11. End If
  12. Next
  13. Next
  14. End Sub
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC