Regular expressions provide a powerful, flexible, and efficient method for processing text. The extensive pattern-matching notation of regular expressions enables you to quickly parse large amounts of text to find specific character patterns; to validate text to ensure that it matches a predefined pattern (such as an email address); to extract, edit, replace, or delete text substrings; and to add the extracted strings to a collection in order to generate a report. For many applications that deal with strings or that parse large blocks of text, regular expressions are an indispensable tool.
Multithreaded programming can be quite difficult, and there’s a tremendous body of concepts and tools to learn when one embarks on this task. To help out, the Microsoft .NET Framework provides the SynchronizationContext class. Unfortunately, many developers aren’t even aware of this useful tool.
How can we detect when a System.Windows.Forms.WebBrowser control has done page done ?. What about Navigate and DocumentCompleted events of control but these events fire multiple times so what to do ????? Here is a solution !
In .NET Framework 4, the Task Parallel Library provides a new model for asynchronous and parallel programming and .NET 4.5 introduced the async and await keywords, simplifying asynchronous programming as much as possible. But for .Net 3.5 we have Delegates enable you to call a synchronous method in an asynchronous manner.
Here we will discuss different ways to kill a process using c-sharp programmatically.