June 2005 Entries
1. Open Microsoft Word (Open Start Menu>Run and type “winword”)
2. Write exactly: =rand(200,99)
3. Press ENTER key, and see what happens!!!
More Info: http://support.microsoft.com/?id=212251
I wonder how many users aware of this AutoCorrect feature? and most important, how many users really use this functionality?
IDisposable is a common interface to release allocated unmanaged resources. Many developers implement IDisposable incorrectly, which causes memory leak inside an application.More Info: http://www.bluebytesoftware... and http://dotnetjunkies.com/We... I wrote Implements IDisposable and press ENTER, Visual Studio 2005 (Beta 2) VB.NET project, it does as follow: (added code snippet ......
I was working with complex usercontrol with a grid and child usercontrols, which raises certain delegates (events). After in-depth code dubug, LostFocus event does not fire in same sequence, when control lost it's focus using KeyBoard or Mouse as specified in MSDN documentation. The issue is:When cancel property of the CancelEventArgs object is set to true in the Validating event delegate, all events that would normally occur after the Validating event are suppressed. It indicates that LostFocus ......
MSDN has created C# (and VB.NET) code library, utility, IDE, add-in and other .net related tools
here.
Microsoft .NET Framework has KeyUp, KeyPress and KeyDown events. These events capture only limited character set. Also, Arrow keys do not fire KeyPress and KeyDown events, but it fires KeyUp event.Now application needs to capture TAB/Arrow keys efectively, before any part of the application reads or fires any events. Also how to disable certain keys within an application? To handle special key events at the form or control level, overrides protected ProcessCmdKey function as follow:Protected Overrides ......
One day an employee sends a letter to his boss asking for salary increase !!! Dear Bo$$, In thi$ life, we all need $omething mo$t de$perately. I think you $hould be under$tanding the need$ of u$, employee$, who have given $o much $upports and $ervice$ to the orgrani$ation. I am $ure you will gue$$ what I mean and re$pond $oon. Your$ $incerely, Nomani $mith The next day, the employee received this letter of reply: Dear NOmani, I kNOw you have been working very hard. NOwadays, NOthing much has been ......
Do you know how computer thinks? Play chess with a computer and see "inside PC's brain".
I have created "Resources" project to store all resource information across projects like icons, images, string, messages, etc... This helps my team to develop application faster, more robust, easy to update resources, and most important, globalization supports. To reduce overhead of the resources with an application interaction, I have created a simple ArrayList collection with a singleton class. It loads all images and icons inside memory when application starts. (I know it occupies lots of memory, ......
To keep programming geek's tradition, I start with “Hello World” example in .NET: .assembly HelloWorld { .ver 1:0:1:0 } .method public static void Main(string[] args) cil managed { .custom instance void [mscorlib]System.STAThreadA... .entrypoint .maxstack 8 L_0000: ldstr "Hello World" L_0005: call void [mscorlib]System.Console::W... L_000a: ret } dp.SyntaxHighlighter.Highli... true, true); Don't worry, I am not an IL programmer. I am working ......