Category Archives: .NET

The NES Classic Edition is Nintendo’s miniaturized version of the groundbreaking NES, originally released in 1985. It comes pre-loaded with 30 games and it doesn’t seem like Nintendo provided any means of adding more games to it. Under the hood Continue reading →

The following C# code shows how to make a Progress Bar in a dialog window that can be shown for tasks that run for an undetermined amount of time. Instead of a regular progress bar that progresses from 0 to Continue reading →

The reason why sometimes a grid control shows a big red X and stops working properly is because an unhandled exception has occurred during the control’s OnPaint event. One way to handle this is by extending from the grid control Continue reading →

The standard ProgressBar class provided by the .NET Framework does not have a way to write custom text over the progress bar. However, it can still be achieved by extending from the standard ProgressBar and by implementing your own OnPaint Continue reading →

Normally when you want a RichTextBox to automatically scroll to the bottom, whenever you add new lines to it, all you need to do is append the new lines with the AppendText() method. However, it seems that the RichTextBox does Continue reading →

It seems that sometimes when you get the text from a RichTextBox object, for instance to put it on the Clipboard, that the carriage return/line feeds are not handled properly. For instance the RichTextBox object may contain 2 lines of Continue reading →

When attempting to validate your XML Document against a schema file in .NET, you might see the following error message: [System.Xml.Schema.XmlSchemaException] = {“The targetNamespace parameter ” should be the same value as the targetNamespace ‘urn:something’ of the schema.”} Basically what Continue reading →