Posts Tagged Code Snippets
Cross-thread operation not valid: .NET Cross Threading To Update Form Control
Posted by Eric in .NET 2.0, .NET 3.5, Code Snippets on September 3, 2009
So you get the “Cross-thread operation not valid” error because you are trying to update an object on your form from a thread. I am not going to try to “glamor” you (True Blood reference) with fundamentals of delegates, threading, etc. If that is what you are looking for, search Google and you will find [...]
Custom Replace with Regular Expressions in .NET
Posted by Eric in .NET 2.0, Code Snippets, Regular Expressions on August 20, 2009
This is the second time I have had to do something like this. So this time I am posting it for my reference. Regular expressions are amazing and amazingly difficult to understand sometimes, but they come in very handy. I was in a situation where I was going to need to feed in a custom [...]



