|
-
Nov 30th, 2014, 02:36 PM
#11
Re: CommonControls (Replacement of the MS common controls)
 Originally Posted by chosk
I show the vbLongDate and vbLongTime in the StatusBar. With every new version, I would go into StatusBar.ctl's Sub GetDisplayText to change Case SbrPanelStyleTime and Case SbrPanelStyleDate accordingly.
Without changing StatusBar.ctl, is there any way I can make the change in my project Form_Load? This will make it much easier.
For the panel's 'Style' property values 'Time', 'Date' and 'DateTime' the vbShortDate/vbShortTime will be used for the GetDisplayText function. Just like the MS StatusBar control does.
However, I could implement a panel's 'DTFormat' property? Which is set by default with 'Short', but could be then also set to 'Long'.
If set to 'Long' then the GetDisplayText function would use vbLongDate/vbLongTime instead of vbShortDate/vbShortTime.
Let me know your opinion.
Last edited by Krool; Nov 30th, 2014 at 02:43 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|