Re: TabStrip, Eliminacion De Pestañas
Prueba ésto. Es una función que te borra la pestaña que quieras del tabstrip que quieras. Solo tienes que pasarle el tabstrip y el número de pestaña que quieres borrar
Mira creo lo que va a contener el tabsrip de esta manera:
Public Sub NuevaPestaña()
Tab[Tab.Index].Text = "Factura " & Tab.Count
Tab.Index = Tab.Count - 1
With LbCliente = New Label(Tab) As "LbCliente"
.H = 21
.W = 105
.x = 14
.y = 7
.Border = 2
End With
With LbDireccion = New Label(Tab) As "LbDireccion"
.H = 21
.W = 105
.x = 14
.y = 42
.Border = 2
End With
With LbLocalidad = New Label(Tab) As "LbLocalidad"
.H = 21
.W = 105
.x = 343
.y = 42
.Border = 2
End With
With LbCuit = New Label(Tab) As "LbCuit"
.H = 21
.W = 105
.x = 343
.y = 7
.Border = 2
End With
With LbTipo = New Label(Tab) As "LbTipo"
.H = 21
.W = 105
.x = 532
.y = 7
.Border = 2
End With
With DatFecha = New DateBox(Tab) As "DatFecha"
.H = 28
.W = 119
.x = 721
.y = 7
End With
With mbClientes = New MenuButton(Tab) As "mbClientes"
.H = 25
.W = 40
.X = 287
.y = 4
.Picture = Picture["icon:/medium/find"]
End With
With tblPlanilla = New TableView(Tab) As "tblPlanilla"
.H = 406
.W = 840
.Y = 7
.X = 7
.Border = 2
End With
With lbsubtotal = New Label(Tab) As "lbsubtotal"
.H = 28
.W = 231
.X = 7
.y = 420
.Font = Font["Bold, +3"]
.Text = "Sub Total"
End With
With lbimpuesto = New Label(Tab) As "lbimpuesto"
.H = 28
.W = 154
.X = 485
.y = 420
.Font = Font["Bold, +3"]
.Text = "Impuesto"
End With
With lbtotal = New Label(Tab) As "lbtotal"
.H = 28
.W = 210
.X = 637
.y = 420
.Font = Font["Bold, +3"]
.Text = "Total > "
End With
End
Lo eliminao de esta manera:
Public Function CerrarVentana(Indx As Integer)
Dim obj As Object
Dim F As Integer
If Indx > 0 Then
For Each obj In Tab[Indx].Children
obj.Delete
Next
Tab[Indx].Delete
Endif
End
Igualmente me produce un error..
Si puede uds. verificarlo y diganme que les ocurre..
Gracias