dualshock03
Well-known member
- Joined
- Jan 28, 2007
- Messages
- 105
- Programming Experience
- 1-3
I got this code of mine when adding tabs to my tabcontrol...
HOwever.. how will i remove tabs instead?? i got a button click which will allow me to remove certain tab..
=========================================================
My second question is about formatting the datetimepicker control... how can i manage to format a null value for my datetimepicker? because it seems there's no option for erasing the value of the datetimepicker... something this: datetimepicker.text = "" OR = nothing OR just even this format doesnt work.. = "0/00/0000"
any answers would be appreciated...
VB.NET:
Private tabPages As New Stack(Of TabPage)
Function _ADDTABS() As Object
If tabPages.Count > 0 Then
'Add the page at the top of the stack.
TabControl1.TabPages.Add(tabPages.Pop())
End If
Return Nothing
End Function
Private Sub addsheet_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles addsheet.Click
_ADDTABS()
End Sub
HOwever.. how will i remove tabs instead?? i got a button click which will allow me to remove certain tab..
=========================================================
My second question is about formatting the datetimepicker control... how can i manage to format a null value for my datetimepicker? because it seems there's no option for erasing the value of the datetimepicker... something this: datetimepicker.text = "" OR = nothing OR just even this format doesnt work.. = "0/00/0000"
any answers would be appreciated...