setting a datetimepicker on a tab control

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,
 
K

Klatuu

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
 
S

Souris

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
 
Top