Search - Articles
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Tuesday, March 03, 2009
Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 


Home >Search > Knowledge Base > C-Sharp > Miscellaneous


Search:
What's New - What's Hot
How to: Extend the Appearance and Behavior of Controls in Design Mode  Version: 0.00     Price: $0.00  
Total Hits: 158  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your 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....

How to: Get Specific Versions of a DataRow  Version: 0.00     Price: $0.00  
Total Hits: 143  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

When changes are made to data rows, the dataset retains both the original (Original) and new (Current) versions of the row. For example, before calling the AcceptChanges method, your application can access the different versions of a record (as defined in the DataRowVersion enumeration) and process the changes accordingly....

How to: Call a Page Function     
Total Hits: 137  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

You can navigate to a page function using a uniform resource identifier (URI), just as you can when you navigate to a page. This is shown in the following example....

How to create client access to a remote server by using Visual C++ .NET or Visual C++ 2005     
Total Hits: 119  |  Today: 0Author: Microsoft      Rating:  
Read Reviews | Write Review |  Your 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...

How to use a DLL from the GAC     
Total Hits: 1029  |  Today: 0Author: thiaguramani      Rating:  
Read Reviews | Write Review |  Your 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...

HOW TO: Set a BorderStyle Property for UserControls in Visual C# .NET (Q316574)     
Total Hits: 1165  |  Today: 0Author: MSDN      Rating:  
Read Reviews | Write Review |  Your 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....

Q302902 - BETA-HOWTO: Binding for Office Automation Servers with Visual C# .NET     
Total Hits: 1202  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your 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....

How to: Create a Custom Double-Click Event  Version: 0.00     Price: $0.00  
Total Hits: 105  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your 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....

How to: Play a Wave File Using Platform Invoke (Devices)  Version: 0.00     Price: $0.00  
Total Hits: 106  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

This example code plays a sound file by using PlaySound on the mobile device. This code uses System.Runtime.InteropServices to invoke the PlaySound method of the Compact Framework's CoreDll.DLL....

How to: Use an InPlaceMetadataWriter to Change Metadata     
Total Hits: 220  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

The following example uses an InplaceBitmapMetadataWriter to write metadata into an image. For the complete sample, see BitmapMetadata Sample....

How to: Register an Attached Property     
Total Hits: 192  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your 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....

How to: Programmatically Modify Site-Map Nodes in Memory     
Total Hits: 303  |  Today: 0Author: Microsoft Coproration      Rating:  
Read Reviews | Write Review |  Your Rating: 

Web sites frequently use dynamic URLs containing information that is appended as query strings. For example, the site for a newsgroup or forum might include static URLs that refer to forums or groups as well as dynamic URLs for each post. A URL for a post might be in the following format:...

LoginHours from DirectoryEntry into boolean array     
Total Hits: 108  |  Today: 0Author: Paw Jershauge      Rating:  
Read Reviews | Write Review |  Your 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....

PublicDomain Logging description and usage     
Total Hits: 212  |  Today: 0Author: schizoidboy.      Rating:  
Read Reviews | Write Review |  Your 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...

WIA Scripting and .NET     
Total Hits: 369  |  Today: 0Author: NETMaster.      Rating:  
Read Reviews | Write Review |  Your 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!...

Inheriting System.Web.HttpApplication     
Total Hits: 163  |  Today: 0Author: Bipin Joshi      Rating:  
Read Reviews | Write Review |  Your 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 :...

Nullable types in C# 2.0     
Total Hits: 224  |  Today: 0Author: omerkamal      Rating:  
Read Reviews | Write Review |  Your Rating: 

Support for nullability across all types, including value types, is essential when interacting with databases, yet general purpose programming languages have historically provided little or no support in this area. Many approaches exist for handling nulls and value types without direct language support, but all have shortcomings. For example, one approach is to use a “special” value (such as −1 for integers) to indicate null, but this only works when an unused value can be identified. Anot...

OID Conversion     
Total Hits: 442  |  Today: 0Author: Miroslav Stampar.      Rating:  
Read Reviews | Write Review |  Your 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" ...

Design Patterns with C#     
Total Hits: 456  |  Today: 0Author: /www.binaryintellect.com      Rating:  
Read Reviews | Write Review |  Your Rating: 

Design patterns provide a powerful way to standardize solutions to common problems in software design. The Design Patterns with C# course is intended for developers having sound experience of programming experience with C#. The course will teach the core GoF patterns along with few other common ones....

Measuring Execution Time in C#     
Total Hits: 972  |  Today: 0Author: ger      Rating:  
Read Reviews | Write Review |  Your 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...



Disclaimer - Privacy
© 2002-2017 DevASP.net