|
-
Jun 23rd, 2004, 09:23 AM
#1
Thread Starter
Lively Member
-
Jun 23rd, 2004, 10:49 AM
#2
Hyperactive Member
This works for me:
VB Code:
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim t As TabPage
For Each t In Me.TabControl1.TabPages
If Me.TabControl1.SelectedTab.Name = t.Name Then Me.TabControl1.TabPages.Remove(t)
Exit For
Next
End Sub
-
Jun 23rd, 2004, 11:05 AM
#3
Sleep mode
Or using one line of code
VB Code:
Me.TabControl1.Controls.Remove(Me.TabControl1.SelectedTab)
-
Jun 23rd, 2004, 11:30 AM
#4
Hyperactive Member
Much better solution, been working with collections like a mad man for the past few days, just stuck in that "loop"
-
Jun 23rd, 2004, 01:53 PM
#5
Thread Starter
Lively Member
thanx ~
the code is working
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|