background preloader

Dot Net Perls

Dot Net Perls

Slashdot Stories (10) How to: Run an Operation in the Background If you have an operation that will take a long time to complete, and you do not want to cause delays in your user interface, you can use the BackgroundWorker class to run the operation on another thread. The following code example shows how to run a time-consuming operation in the background. The form has Start and Cancel buttons. Click the Start button to run an asynchronous operation. Click the Cancel button to stop a running asynchronous operation. The outcome of each operation is displayed in a MessageBox. There is extensive support for this task in Visual Studio. Also see Walkthrough: Running an Operation in the Background. Example Compiling the Code This example requires: References to the System, System.Drawing and System.Windows.Forms assemblies. See also

C# Tutorials (C#) The C# tutorials provide an overview of the basics of the language and identify important language features. Each tutorial includes one or more sample programs. The tutorials discuss the sample code plus provide additional background information. They also link to the corresponding sample abstract topics, where you can download and run the sample programs. See Also WOW! eBook Book Description Design and build Web APIs for a broad range of clients—including browsers and mobile devices—that can adapt to change over time. This practical, hands-on guide takes you through the theory and tools you need to build evolvable HTTP services with Microsoft’s ASP.NET Web API framework. In the process, you’ll learn how design and implement a real-world Web API. Ideal for experienced .NET developers, this book’s sections on basic Web API theory and design also apply to developers who work with other development stacks such as Java, Ruby, PHP, and Node. Table of Contents Chapter 1. Develop next-generation web applications with ASP.NET MVC Go deep into the architecture and features of ASP.NET MVC 5, and learn how to build web applications that work well on both the desktop and mobile devices. Discover how to: Table of Contents Download Now » Table of Contents Chapter 1. Comprehensive guide to Visual Studio 2013 Visual Studio is your essential tool for Windows programming.

Tonido - Run your own Personal Cloud .NET Framework Programming in Visual Studio This section of the documentation discusses application development with the .NET Framework in Visual Basic, Visual C#, Visual J#, or Visual C++. Any of these programming languages can be used equally well in the subjects covered in this section. Applications are built on the services of the common language runtime and take advantage of the .NET Framework class library. You can download the .NET Framework 3.5 from the Microsoft Download Center. Provides a table of links to the main technology areas of the .NET Framework. Describes key features that have been added or modified in the latest versions of the .NET Framework. Describes key .NET Framework concepts such as the common language runtime, the common type system (CTS), cross-language interoperability, managed execution, assemblies, and security. Discusses aspects of incorporating data access functionality into your applications. Discusses security issues covering the lifetime of an application.

Delegates Tutorial (C#) This tutorial demonstrates the delegate types. It shows how to map delegates to static and instance methods, and how to combine them (multicast). Sample Files Further Reading Tutorial A delegate in C# is similar to a function pointer in C or C++. A delegate declaration defines a type that encapsulates a method with a particular set of arguments and return type. An interesting and useful property of a delegate is that it does not know or care about the class of the object that it references. Note Delegates run under the caller's security permissions, not the declarer's permissions. This tutorial includes two examples: Example 1 shows how to declare, instantiate, and call a delegate. In addition, it discusses the following topics: Delegates and Events Delegates vs. Example 1 The following example illustrates declaring, instantiating, and using a delegate. The use of delegates promotes good separation of functionality between the bookstore database and the client code. Output Code Discussion

Code Arsenal Walking About With A Talking Android I have long relied on spoken directions from Google Maps on the desktop. As I access more and more of my online world through my Android phone, Google's recent announcement of GMM4.5 enhanced with walking directions means that I now have superior functionality to what I have enjoyed at my desk --- but now with the added benefit of having it all in my pocket! Inclusion of step-by-step walking directions on Android now allows me to specify a destination on my TalkBack enabledeyes-free Android device, and have these spoken to me as I walk. But wait, there's more! We're launching a new member of our Eyes-Free family of programs for Android --- WalkyTalky that goes hand-in-hand with spoken walking directions from Google Maps to better navigate the physical world. In addition,application Intersection Explorer allows me to explore the layout of streets using touch before venturing out with WalkyTalky.

Related: