UPDATED 14/2/07 - to remove a couple of bugs.
This idea came about when I had finished an app and wished that I had made the font bold to make it easier to read, or blue instead of boring black.
Although these can be set at design time, it's nice to be able to change things at runtime !
CHECK OUT THE ATTATCHED JPG
I have added btn by the sizing grip which opens / closes the menu ( as does Alt M ) instead of right clicking the StaBar. The reason for this was that with no sizing grip showing, I think that the wide margin looked ugly !
StaBar:
Backcolour
Show/hide the sizing grip
Professional ( Msg/Time/Date Backcolour take on the StaBar Backcolour)
System ( Msg/Time/Date Backcolour have their own Backcolour)
Msg/Time/Date:
Backcolour
Fontcolour
Font bold/regular
Date:
Short
Long
English with date suffix ( Wednesday 23rd December 2007 )
As I said in my 1st post I like it, that's all that matters isn't it ?????
I welcome any comments / suggestions, although they may not be acted on !!!!!![]()
Code:*********** VISUAL BASIC 2005 FRAMEWORK 2 ************ '// Copy the files (.dll, .res)to your output dir ( \debug or \release ) where the exe is '// Add a reference to it from solution explorer '// Then use it like this Public Class Form1 Dim StaBar As New UCStaBar.UCStaBar Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Me.Controls.Add(StaBar) '// Use in this form to display any messages !!! StaBar.Msg = "TESTzzzzzzzzzzzzzzzz" End Sub End Class '// Or add it to the toolbox and throw it on the form.




Reply With Quote