setting a datetimepicker on a tab control

  • Thread starter Thread starter Souris
  • Start date Start date
S

Souris

I would like to set a date time picker control value on a tab control.

I tried to put code onFormActivate, but it fails.
It seems that I need put the code onTabControlChange.

How can I to specify which page is activate onTabControlChange to set the
value?

Please let me know if I am wrong,

Your information is great appreciated,
 
In the Change event of the tab control, test for its value. If you clicked
on the first page, it will return 0, the second page will return 1, etc.

I recommend a Select Case statment to take specific action based on the
selected tab.

With Me.
Select Case .tabInit
Case 0
'Do stuff for frst tab page
Case 1
'Do stuff for second tab pate
Case 2
'Do stuff for third tab pate
End Select
End With
 
Thanks millions,

Klatuu said:
In the Change event of the tab control, test for its value. If you clicked
on the first page, it will return 0, the second page will return 1, etc.

I recommend a Select Case statment to take specific action based on the
selected tab.

With Me.
Select Case .tabInit
Case 0
'Do stuff for frst tab page
Case 1
'Do stuff for second tab pate
Case 2
'Do stuff for third tab pate
End Select
End With
 
Back
Top