Virus spam
by TLCube on Feb.20, 2010, under Uncategorized
Long long time. No even single e-mail spam. Now i received some type of trojan. You can look the Virustotal report. Why i am worried? Virus total result when writing this article is 9/41 (21.95%). When is crystal clear that you don’t want click this. Te virus detection in market only some of them wake up.
Top 25 Most Dangerous Programming Errors
by TLCube on Feb.18, 2010, under Programming
The computer experts from 30 diffrents organisation around the about worlds have compiled list most dangerous coding mistakes.
Hmm i have been guilty to number 16. Information Exposure Through an Error Message.
Textbox caret
by TLCube on Feb.15, 2010, under Programming
If you are using dark colors your applications, there is possibly that TextBox caret is color is black. This will make editing TextBox text more difficult. TextBox caret color is inverse to backround color, but when backround color is set to null, the default black color is used (picture 1).
There is couple of workarounds. The simplest is set TextBox backround color same color as where parent color is (picture 2). There is another workaround here.
Now WPF 4.0 has new CaretBrush property. You can simply set caret color just like any other colors (Picture 3).
<TextBox Name="textBox3" CaretBrush="Orange"/><code>
You can also specify a more complex brush like a LinearGradient (picture 4):
<TextBox.CaretBrush>
<LinearGradientBrush StartPoint="0,0"
EndPoint="0,1">
<GradientStop Color="White"
Offset="0" />
<GradientStop Color="Orange"
Offset=".5" />
<GradientStop Color="White"
Offset="1" />
</LinearGradientBrush>
</TextBox.CaretBrush>
Time to say goodbye for caret problems.

