background preloader

Key123

Facebook Twitter

Tanya

A Pretty Good Splash Screen in C# Download source and demo - 34.5 KB Update This article was originally written almost 10 years ago, when the current version of .NET was 1.1.

A Pretty Good Splash Screen in C#

Over time, readers have reported a number of defects and suggestions for workarounds (in the comments below) that haven't, until now, been incorporated into the article. However, a few years back Mahin Gupta was kind enough to update the source code with fixes and changes based on those comments and had provided a link to that source that many folks were downloading and using. This update takes from that source code and incorporates the changes into the text of the article, as well as updating the attached zip file containing the code. I'd like to thank Mahin, as well as the many folks who posted bug reports and fixes below.

Fixed cross threading oversight (lblTimeRemaining label was being set directly.) I didn't implement one suggestion. Introduction In this tutorial, we'll explore how to create a splash screen and add these features one at a time. How do I... Use C# to upload and download files from an FTP server? Threading.pdf (application/pdf Object) Code Sample: Programmatically Download File Using C# Checking whether the PC is connected on LAN or not... Threading in C# - Free E-book. Threading in C# Joseph Albahari Last updated: 2011-4-27 Translations: Chinese | Czech | Persian | Russian | Japanese Download PDF Part 1: Getting Started C# supports parallel execution of code through multithreading.

Threading in C# - Free E-book

A C# client program (Console, WPF, or Windows Forms) starts in a single thread created automatically by the CLR and operating system (the “main” thread), and is made multithreaded by creating additional threads. All examples assume the following namespaces are imported: using System; using System.Threading; class ThreadTest{ static void Main() { Thread t = new Thread (WriteY); t.Start(); for (int i = 0; i < 1000; i++) Console.Write ("x"); } static void WriteY() { for (int i = 0; i < 1000; i++) Console.Write ("y"); }}

Key125

How do I specify the exit code of a console application in .net. System Error Codes (0-499) Note The information on this page is intended to be used by programmers so that the software they write can better deal with errors.

System Error Codes (0-499)

If you are an end-user that is experiencing difficulty with an application you are installing or running, contact customer support for the software that is displaying the error message. To obtain support for a Microsoft product, go to The System Error Codes are very broad. Each one can occur in one of many hundreds of locations in the system. 0 (0x0) The operation completed successfully. 1 (0x1) Incorrect function. 2 (0x2) The system cannot find the file specified. 3 (0x3) The system cannot find the path specified. 4 (0x4) The system cannot open the file. 5 (0x5) Access is denied. 6 (0x6) The handle is invalid. 7 (0x7) The storage control blocks were destroyed. 8 (0x8) Not enough storage is available to process this command. 9 (0x9) The storage control block address is invalid. Mike's Code Blog: C# Xml List Serialization Behavior. Xml serialization in C# is, for the most part, simple and transparent.

Mike's Code Blog: C# Xml List Serialization Behavior

Public properties of your objects are automatically written to and read from a corresponding Xml representation. Usually this happens exactly as you would expect, but there are a few gotchas in serialization of lists. Take this example object: public class XmlTest{ private List<int> integerList = new List<int> { 1, 2, 3 }; Cambridge Dictionary Online: Free English Dictionary and Thesaurus - Cambridge University Press - Cambridge Dictionaries Online - Cambridge University Press. Blog »  Improve Your Communication Skills, Style & Speech. Communication includes diplomacy, style, pitch, vocabulary & tone. Sometimes you have to watch how you communicate with people. Without being diplomatic, you may not be an effective communicator.

Diplomacy means skill in managing negotiations, handling people etc… so that there is little or no ill will; have tact & skill in dealing with people. When you learn how to communicate with people it determines how they will or will not respond to you. Grammar Topics: Adverbs,verbs,adjectives,determiners,articles,conditionals, prepositions etc... Do you have a question about the correct usage of the semicolon or how to place adverbs in a sentence?

Grammar Topics: Adverbs,verbs,adjectives,determiners,articles,conditionals, prepositions etc...

If so, you've come to the right place. These pages are a complete English grammar guide filled with the rules of English usage. Each grammatical rule is explained in plain English with several examples, and when needed, counter-examples. Aptitude Questions and Answers. The Interpersonal Communication Skills. The Interpersonal Communication Skills Ability to ask the questions and listen are vital to the good interpersonal skills.

The Interpersonal Communication Skills

In fact the empathetic listening is a number one skill which can help to build the relationships. Interview Questions And Answers. Demonstrating Java Programs using the Robot Class — Developer.com. Java Programming Notes # 1476 Preface Programming in Java doesn't have to be dull and boring.

Demonstrating Java Programs using the Robot Class — Developer.com

In fact, it's possible to have a lot of fun while programming in Java. This is the third lesson in a short miniseries that shows you how to use the Robot class to write programs that are both fun and useful. New features in SDK Version 1.3.

Key124

How to read XML from a file by using Visual C# This article describes how to use the XmlTextReader class to read Extensible Markup Language (XML) from a file. XmlTextReader provides direct parsing and tokenizing of XML and implements the XML 1.0 specification as well as the namespaces in the XML specification from the World Wide Web Consortium (W3C). This article provides fast, tokenized stream access to XML rather than using an object model such as the XML Document Object Model (DOM). Using the XmlSerializer Attributes. Introduction The main purpose of this article is to discuss some of the uses for XML Serialization, and explore some of the basics of using the XmlSerializer and the attributes in the System.Xml.Serialization namespace.

Using the XmlSerializer Attributes

To keep this discussion basic, I will not talk about XML namespaces, or the attributes' more specific constructors. This article only aims to give a basic introduction to the serializer and attributes, and some links to further reading and helpful tools. However, one of the great things about this approach to working with XML, is that it takes very little work and you can benefit greatly from the basics alone. C# Tutorial - XML Serialization. A long while ago we posted a tutorial on how to serialize objects to a binary file.

C# Tutorial - XML Serialization

While this is very useful, unfortunately the resulting file is not very human readable. In this tutorial, I'm going to demonstrate how to serialize your own objects to and from an XML file. Since .NET can use reflection to get property names, basic serialization is unbelievably simple. It only gets slightly difficult when you want to name your XML tags differently than your property names (but still not very hard). XML in .NET: .NET Framework XML Classes and C# Offer Simple, Scalable Data Manipulation. XML Serialization Using C# XML Serialization Using C#...

Object serialization is a process through which an object's state is transformed into some serial data format, such as XML or a binary format. By: Nitin Pande Date: December 5, 2004. Use XML Serialization with Custom Objects : Serialization « File Stream « C# / C Sharp. How to add attributes for C# XML Serialization. Controlling XML Serialization Using Attributes. By default, an XML element name is determined by the class or member name.

Controlling XML Serialization Using Attributes

In a simple class named Book, a field named ISBN will produce an XML element tag <ISBN>, as shown in the following example. public class Book { public string ISBN; } // When an instance of the Book class is serialized, it might // produce this <ISBN>1234567890</ISBN>. public class TaxRates{ [XmlElement(ElementName = "TaxRate")] public decimal ReturnTaxRate; }

Introducing XML Serialization. Serialization is the process of converting an object into a form that can be readily transported. For example, you can serialize an object and transport it over the Internet using HTTP between a client and a server. On the other end, deserialization reconstructs the object from the stream.

Getting linq to xml attributes? C# .NET. Language-Integrated Query (LINQ) is a new approach that unifies the way data can be retrieved in .NET. There already has been a lot of talking about the power of LINQ and if you had the chance to test its capabilities you can surely confirm that. To resume in a few words what particular feature nominates LINQ as an efficient and elegant approach for data accessing, I want to mention that almost any data structure (arrays, relational data, collections and XML) can become a data source using LINQ.

While .NET includes a library to manage XML (System.XML), LINQ to XML extends this namespace bringing the standard query operators and integrating them with XML documents (System.XML.Linq). We can load an XML document into memory and then use LINQ syntax to query it. How to improve your soft skills at work: Rediff.com Get Ahead. English bloopers: 'The exams are preponed' - Rediff.com Get Ahead. Tips to make your business writing shine - Rediff.com Get Ahead. 10 skills job-hunting graduates need. 12 things your CV should NOT have - Rediff.com Get Ahead. Strategies to improve your grammar - Rediff.com Get Ahead. Party your way to a new job - Rediff.com Get Ahead. Skills every IT professional MUST have. Nine common English bloopers - Rediff.com Get Ahead. Get Ahead Careers: Are you listening well? Mistakes we make while speaking English - Rediff.com Get Ahead.

The top 60 soft skills at work: Rediff.com Get Ahead. Reading and Writing XML in C# Chose vs chosen. Alternative Way to Get the Table's Row Count. How to Perform SQL Server Row-by-Row Operations Without Cursors. Best split function. E-Mail Functionality in SQL Server 2005. A SQL Split Function. C# Constructor & Destructor Interview Questions. Thinking about C# Cookbook, 2nd Edition - Filesystem I O - Verifying A Path. Java Swing Tutorials - Herong's Tutorial Examples. Swing: A Quick Tutorial for AWT Programmers. [Chapter 10] 10.5 Referencing and Modifying PL/SQL Table Rows. Trail: Creating a GUI With JFC/Swing (The Java™ Tutorials) Java Swing,Java Swing Tutorials,Swing Example Java,Online Swing Tutorials,Swing Example Code Java. Swing - Avoid iterating through everything.

The Java Swing tutorial. View topic - Tutorial and Presentation. QuickStart Tutorials. Introductions to Crystal Reports in. Using Calendar Control in ASP.NET. C# Image Viewer Sample Application. Binding data in the gridview C# .NET. How to use Crystal Report in your project? Browse Alfresco Content Management Files on SourceForge. Get generic list of dates between start and end date in c# code. Documentation for infragistics 2009 volume 2 Windows. DateTime Examples. C# 2.0 Yield Return Iterator. Deploying A C# Application (Visual Studio Setup Project) - C# Tutorials. What is “ref” keyword in C# - Asp.Net, C#, SQL Blog. Automatic Password Generator in C# The out and ref Paramerter in C# Getting started with setup projects. Best Practices No 5: - Detecting .NET application memory leaks.

C# Classes: Class Partial Implementation. Partial Classes in C# Want to improve your English? - Rediff.com Get Ahead. Entertainment icons - customer icon, score board icon and payouts icons. SQL Tutorial - Learn SQL. ALTER TABLE Statement. MySQL - SQL - Create Foreign Key Constraint. CAST and CONVERT. CAST and CONVERT (Transact-SQL) Convert Text to Numbers (Integer) – CAST and CONVERT « Journey to SQL Authority with Pinal Dave. Microsoft SQL Server: Programming - Using LIKE to search for datetime field. Working with SQL Server Date/Time Variables: Part Three - Searching for Particular Date Values and Ranges. Walkthrough: Creating a SQL Server Compact 3.5 Database. Walkthrough: Creating a SQL Server Express Database. Local Data Overview. How to: Manage Local Data Files in Your Project. Google.

Pearltrees videos

Help. Sending Mail in ASP.NET using C# Playing AVI Files using DirectX 9 with C# and. Play Audio File (Wav) Samples and examples - C#, VB.NET, ASP.NET. Playing .wav files using C# Play a wave file (C#) - C# DirectShow MediaPlayer in C# C# code to play Audio,Video file.