|
|
|
|
|
Total Hits: 136 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

This example shows how to register an attached property and provide public accessors so that you can use the property in both Extensible Application Markup Language (XAML) and code. Attached properties are a syntax concept defined by Extensible Application Markup Language (XAML). Most attached properties for WPF types are also implemented as dependency properties. You can use dependency properties on any DependencyObject types....
|
|
|
|
Total Hits: 156 | Today: 0
|
Author: schizoidboy.
|
Rating:
|
|

This article describes how to use the Logging API in the PublicDomain package. Features of the PublicDomain Logging API include:
* Fully extensible model * Configuration parser * Logging on a background thread to avoid performance slow-down due to logging * Log guards * CompositeLogger * FileLogger along with RolloverStrategy * ApplicationLogger class for quick and dirty logging...
|
|
|
|
Total Hits: 366 | Today: 0
|
Author: Miroslav Stampar.
|
Rating:
|
|

What is an object identifier? Object identifiers are, basically, strings of numbers. They are allocated in a hierarchical manner, so that, for instance, the authority for "1.2.3" is the only one that can say what "1.2.3.4" means. They are used in a variety of protocols. The formal definition of OIDs comes from the ITU-T recommendation X.208 (ASN.1), which is available from the ITU (if you have your checkbook handy). The definition of OID is in chapter 28; the assignment of the "top of the tree" ...
|
|
|
|
Total Hits: 862 | Today: 0
|
Author: MSDN
|
Rating:
|
|

This article describes how to create keys to use for encryption, decryption, and validation of Forms authentication cookie data. You can use the keys that you create in this article for the validationKey and decryptionKey attributes of the section in the element in the Machine.config and Web.config files....
|
|
|
|
Total Hits: 1035 | Today: 0
|
|
Rating:
|
|

This article explains and compares early and late binding for Visual C# Automation clients and provides code samples that demonstrate both types of binding....
|
|
|
|
Total Hits: 480 | Today: 0
|
|
Rating:
|
|

This article discusses a Beta release of a Microsoft product. The information in this article is provided as-is and is subject to change without notice.No formal product support is available from Microsoft for this Beta product. For information about obtaining support for a Beta release, please see the documentation included with the Beta product files, or check the Web location from which you downloaded the release. The information in this article contains Microsoft .NET Development Platf.....
|
|
|
|
Total Hits: 1401 | Today: 0
|
|
Rating:
|
|

This article describes how to use ActiveX Data Objects (ADO) .NET to connect to a database and run a command....
|
|
|
|
Total Hits: 136 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

The following example uses an InplaceBitmapMetadataWriter to write metadata into an image. For the complete sample, see BitmapMetadata Sample....
|
|
|
|
Total Hits: 68 | Today: 0
|
Author: Paw Jershauge
|
Rating:
|
|

When extracing the loginhours member from DirectoryEntry, we get the byte array.
This array represents login hours tabel for the user. its based like this.
Every day equals 3 bytes, therefor the array length is always 21 or NULL.
if the loginhours returns null, then just make an new array of bytes, with all value set to 255....
|
|
|
|
Total Hits: 283 | Today: 0
|
Author: NETMaster.
|
Rating:
|
|

This sample shows how to use Windows XP Windows Image Acquisition (WIA) Scripting with .NET and C#. It is useful for integrating with scanners, digital cameras, webcams and still-video.
Note, this article doesn't save you from reading the detailed WIA documentation!...
|
|
|
|
Total Hits: 926 | Today: 0
|
Author: thiaguramani
|
Rating:
|
|

This article describes how to use DLLs which are in the GAC. The technique described is very useful to use common projects in a secure way. First, in the command prompt, go to the folder in which the project DLL is saved. Then, create a strong name for that DLL by using the command sn -k [strong name.snk]. Then, put that strong name in the [assembly: AssemblyKeyFile("strongnamepath")] line in assemblinfo.cs, and build that project. Again in command prompt, type gacutil /i [assemblyname]. Now, th...
|
|
|
|
Total Hits: 883 | Today: 0
|
Author: ger
|
Rating:
|
|

Sometimes, while writing programs, we can get into situations when we need to measure execution times of various tasks. Each programming language provides some mechanism to retrieve the current time from the system. If we read and store the system time at various moments, we can compute time intervals by substracting the values of system time taken at diffent moments. We will see how to read the system time and how to measure time intervals in C#. In C#, the DateTime class is used for storing th...
|
|
|
|
Total Hits: 1059 | Today: 0
|
Author: MSDN
|
Rating:
|
|

This step-by-step article describes how to set a custom border style for a UserControl object. By default, UserControl objects do not have a BorderStyle property set. The BorderStyle property specifies the border style for controls that have a changeable border....
|
|
|
|
Total Hits: 589 | Today: 0
|
Author: MSDN
|
Rating:
|
|

Compression in a Joint Photographic Experts Group (JPEG) file is controlled by a set of quantization tables. Typically, there are two such tables in each file: one for the luminance (brightness) information and the other for the chrominance (color) information. These tables are 8x8 matrices that determine how the 8x8 blocks of discrete cosine coefficients are quantized....
|
|
|
|
Total Hits: 751 | Today: 0
|
|
Rating:
|
|

This article demonstrates how to start the application that is associated with a given document extension or file type without needing to know the name or location of the associated application. For example, you can start Arcade.bmp with the application that is associated with the .bmp file extension, which is MSPaint.exe in most cases....
|
|
|
|
Total Hits: 15 | Today: 0
|
Author: Bill Gu
|
Rating:
|
|

First of all, I would like to suggest you to run my small program. Not sure what your system is; on my computer, it prints out a line in about 1500 milliseconds. I think your result would be quite close to this as long as you run it on a Windows NT, 2000, or XP platform. Then, you just open your browser and visit http://finance.yahoo.com/. Yes, the Yahoo! Finance page, not the Yahoo! home page. Suddenly, you will see that the small program runs much faster (on my computer, it prints a line in 20...
|
|
|
|
Total Hits: 42 | Today: 0
|
Author: Microsoft
|
Rating:
|
|

This step-by-step article describes how to create a client that accesses a remote server. This client can be located on the same computer, on a different computer, or on a different network. This article builds on the following Microsoft Knowledge Base article: 818780 (http://support.microsoft.com/kb/818780/) HOW TO: Create a remote server by using Visual C++ .NET...
|
|
|
|
Total Hits: 80 | Today: 0
|
Author: Bipin Joshi
|
Rating:
|
|

Recently one of my friends, who happen to be .NET novice, was showing me his first pilot application developed in ASP.NET. He showed me how he used web.config file to store database connection string information. Next, he told me that he has written a small function in every page that extracts this value and returns to the caller. However, he wanted to know whether there is a way to avoid this repetitive code. This 'how to' kind of article answers his question (I hope it will help you as well :...
|
|
|
|
Total Hits: 33 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

You can extend the design-time environment by authoring your own custom designer. Your custom designer can change the appearance and behavior of your control while the user is designing the control....
|
|
|
|
Total Hits: 46 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

The .NET Compact Framework does not support the Windows Forms DoubleClick event for a button. But you can create a control that derives from the Button class to implement the event....
|
|
|
|
|
|