Private Sub StatusLog(What As String)
With txtStatus ' <--- rich text box
.SelLength = 0
.SelStart = Len(txtStatus.Text)
.SelColor = Configuration.picStatusColor(2).BackColor
.SelText = "[ " & Time() & " ] "
.SelColor = Configuration.picStatusColor(1).BackColor
.SelText = What & vbCrLf
Private Sub Form_Load ()
Private Sub printmsg()
The users may change the color which they want from another configuration form . my problem is when the users have changed the color , how can i apply the color changes to all of the text in the txtStatus ?
It might look like this , in txtStatus
[ 9:00:01 PM ] Welcome welcome <--- before color make changes (blue)
[ 9:00:02 PM ] Welcome <--(blue)
[ 9:00:03 PM ] blah blah blah <----user changes the font color (red)
[ 9:00:04 PM ] blah blha <---- (red)
what i wan to do is to change the blue text into red too ..
Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.
While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library. This article will introduce you to the SC library a…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.
There is also a companion Debug Toolbar that looks like the followin…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code.