You could add a masked edit textbox (a.k.a. Microsoft Masked 
Edit Control x.x) to your project.  If you then use a mask of 
##:##, the user can only enter the hours and seconds.  The : 
will always be there and does not have to be typed.Masked Edit 控件提供受限制数据输入和格式化数据输出。此控件提供有关所输入或显示的数据类型的可视提示。这就是该控件作为工具箱中的图标时的外观:文件名
MSMASK32.OCX类名
MaskEdBox