Library code snippets tagged with .net

Search filter
Tags
Page 1 of 1
  • Deep clone an object in .NET

    by James Crowley

    A simple code snippet that deep-copies an object by serializing and de-serializing using the BinaryFormatter .net, c#

  • Making a .NET app run on Vista with Administrator priviledges

    by James Crowley

    If you're targeting Windows Vista and your application requires administrator priviledges (such as accessing the program files directory), then it will fail unless you include a manifest so Windows knows. Here's how. .net, c#, vb.net

  • Dynamically Generating PDFs in .NET

    by James Crowley

    Learn how to use the free iTextSharp library to load a PDF form, populate some dynamic fields, and then save out a flat PDF file. .net, c#, pdf

  • Start a Process as a Different User

    by Peter Rekdal Sunde

    This tutorial will help you learn how to start a process as another user e.g. the Administrator account. .net, security

  • Sending Authenticated Emails in .NET 2.0

    by Xavier Larrea

    Learn what's changed with .NET 2.0 and how to send out emails using an SMTP server that requires authentication. .net, asp.net, c#

  • SQL Data Provider VB.NET Class

    by Mehdi Golchin

    This class includes some useful methods for working with Misrosoft SQL Server in .NET simply and quickly. .net, ado.net, sql, vb.net

  • Precise .NET Server Content Caching

    by Dimitrios Markatos

    A simple demonstration of how to programatically use the caching facilities that ASP.NET offers. .net

  • Transactions made easy with .NET 2.0

    by Xavier Larrea

    One of the more significant improvement in .NET 2.0 is the transactions area. Now with a single line it becomes extremely easy to support transactional code blocks using the concept of “ambient” transaction thanks to TransactionScope in the System.Transactions namespace. .net, ado.net, asp.net, c#

  • Generate an Image of a Web Page

    by Alan Dean

    Demonstrates how to fetch images and thumbnails of web pages using a hidden web browser control. .net, image, thumbnail, vb.net

  • Parse a UK Date String

    by James Crowley

    Ever wondered why DateTime.Parse doesn't recognise non-US date format? Here's how to get it to! .net, c#, vb.net

  • Calculate Age

    by James Crowley

    How to calculate someone's age from their birth date. .net, c#, vb.net

  • Double buffering in .NET

    by Simon Soanes

    Ever wondered how to double buffer with a Graphics object so your GDI+ based game/control doesn't flicker annoyingly? Here's how! .net, vb.net

  • Customize XML Serialization using IXmlSerializable

    by James Crowley

    Learn how to implement the IXmlSerializable in order to customize serialization of your objects - for instance, serializing a NameValueCollection. .net, xml

  • How to run through multiple DataReader results

    by Edward Tanguay

    You can save code by piling SQL statements into one SqlCommand and then getting a DataReader with multiple result sets. .net, ado.net, vb.net

  • Capture a Screen Shot

    by James Crowley

    Demonstrates how to capture a screen shot of the entire desktop, or a particular window in C# or VB.NET. .net, vb.net

  • Merge an .exe and a .dll into one .exe

    by Edward Tanguay

    How to merge an .exe and a .dll into one .exe using ilmerge in VS.NET .net, c#