|
|
|
|
|
|
| | Total Hits: 269 | Today: 0 | Author: Marc Clifton | Rating:  |
| |  On occasions, one needs to take time samples of an operation but only as a diagnostic during development and/or testing in a debug build. And, while there is an excellent Stopwatch class in .NET 2.0, this class is inappropriate for non-diagnostic time sampling because it:
is not a static class, and therefore does not support conditional debug builds.... |
| | Total Hits: 260 | Today: 0 | Author: Nishant Sivakumar | Rating:  |
| |  This bug was first reported by Jochen Kalmbach on April 12th 2002 (no links available to original posting), when VS.NET 7.0 was doing its initial rounds; and it's quite inconceivable why the bug still exists in VS.NET 2003. Just about every week, at least two people report issues related to this bug and I thought it might be a good idea to have an article on it here on CodeProject. What's really annoying is that the developer might spend several hours or even a full day on the problem before rea... |
| | Total Hits: 228 | Today: 0 | Author: Don Kackman | Rating:  |
| |  Version 1.1 of the .NET framework introduced the method System.Windows.Forms.Application.EnableVisualStyles. Calling this method prior to the creation of any Forms or Controls, will cause Windows XP to apply a theme when rendering Windows Common Controls and many of the native .NET controls like Buttons and CheckBoxes.... |
| | Total Hits: 247 | Today: 0 | Author: Marc Clifton | Rating:  |
| |  A workaround for a bug I discovered with the async reader in the Process class.... |
| | Total Hits: 242 | Today: 0 | Author: Brian Duke | Rating:  |
| |  The main focus of this article is to load the contents of a DBF file into a DataTable. Sure, you can search the Internet and find a thousand examples of how to load a DBF in .NET. However, try to find one that does not use the MS Jet driver or perhaps the MS FoxPro driver. I tried myself and couldn't find one, so I decided to write a class to do it.... |
| | Total Hits: 225 | Today: 0 | Author: Abhishek Sur | Rating:  |
| |  Have you ever come across a situation where your website which was working for the last couple of months gives a weird error "Unable to Validate Data". Yesterday, while working I found that my website which is already published in IIS throws this error. Initially I thought the error might be with my code, but I found that everything is good with the code. So I looked forward to internet and found that this error comes when the viewstate of a page cannot be decrypted when the response is received... |
| | Total Hits: 273 | Today: 0 | Author: Gianluca Negrelli | Rating:  |
| |  The UpdatePanel represents Microsoft's main interpretation of AJAX techniques. The UpdatePanel's indubitable merit is that it brings the magic of AJAX in every day's programming work for any ASP.NET programmer. But now, three years after it was born, the UpdatePanel shows all its limits even to me, a trusty and loyal Microsoft programmer.... |
| | Total Hits: 304 | Today: 0 | Author: Dhananjay Kumar | Rating:  |
| |  What is and how to fix error: "SetConfigurationSettingPublisher needs to be called before FromConfigurationSetting can be used"... |
| | Total Hits: 382 | Today: 0 | Author: Dinkar Chavhan | Rating:  |
| |  Generics allow a type or method to operate on objects of various types while providing compile time type safety; that means if you add in generics class different type variable. Eg., string and int in a same list then it will throw a compile time error. Generics are available in the System.Collections.Generic Namespace.... |
| | Total Hits: 402 | Today: 0 | Author: DevLake | Rating:  |
| |  You can see this and other great articles on Design Patterns here.
The Builder Design Pattern allows you to create a general guideline on how to create an object, then have different implementations on how to build parts of the object.... |
| | Total Hits: 375 | Today: 0 | Author: DevLake | Rating:  |
| |  The abstract factory design pattern is merely an extension of the factory method pattern, which allows you to create objects without being concerned about the actual class of the objects being produced. The abstract factory pattern extends the factory method pattern by allowing more types of objects to be produced.... |
| | Total Hits: 411 | Today: 0 | Author: DevLake | Rating:  |
| |  You can see this and other great articles on design patterns here.
The prototype design pattern allows you to avoid expensive initialization routines when you construct objects that are very similar. The goal is to minimize the amount of work needed in creating new objects when the initialization routines are expensive. For example, if the initialization routine requires database queries, file lookups, or service calls and you already have other objects in the system that are very similar... |
| | Total Hits: 86 | Today: 0 | Author: DevLake | Rating:  |
| |  The bridge design pattern allows you to separate the abstraction from the implementation. In the bridge pattern, there are 2 parts - the first part is the Abstraction, and the second part is the Implementation. The bridge pattern allows the Abstraction and the Implementation to be developed independently, and the client code can access only the Abstraction part without being concerned about the Implementation part.... |
| | Total Hits: 94 | Today: 0 | Author: DevLake | Rating:  |
| |  The composite design pattern allows you to set up a tree structure and ask each element in the tree structure to perform a task. A typical tree structure would be a company organization chart, where the CEO is at the top and other employees at the bottom. After the tree structure is established, you can then ask each element, or employee, to perform a common operation.... |
| | Total Hits: 90 | Today: 0 | Author: DevLake | Rating:  |
| |  You can see this and other great articles on design patterns here.
The decorator design pattern allows you to add features to an object dynamically. An example would be the search functionality in an application. You may need to search for employees such as salary, zip code, skills, and so on. The user may choose to enter any combination of search criteria, and it would be a daunting task trying to figure out all the possible combinations as the number of fields grow. The decorator patter... |
| | Total Hits: 84 | Today: 0 | Author: AbhishekGoenka | Rating:  |
| |  In the .NET Framework 4, a namespace called System.ComponentModel.DataAnnotations is available for both the common CLR (WPF) and the lighter Silverlight CLR. You can use the DataAnnotations namespace for various purposes. One of these is for data validation using attributes, and another is the visual description of fields, properties, and methods, or to customize the data type of a specific property. These three categories are classified in the .NET Framework as Validation Attributes, Display At... |
| | Total Hits: 91 | Today: 0 | Author: Ondrej_Uzovic | Rating:  |
| |  This is a simple example showing how to implement encrypted communication between Windows Phone 7 and standalone .NET application.... |
| | Total Hits: 139 | Today: 0 | Author: Prasanta_Prince | Rating:  |
| |  Just paste the Script Section in the Head section and in on key press call the function. For C#, just paste the following code:... |
| | Total Hits: 102 | Today: 0 | Author: Alexander Böcken | Rating:  |
| |  Microsoft discourages the use of DirectInput for keyboard and mouse input in games, but it is still recommended to process data from a legacy joystick, or other game controller. New applications should use the Raw Input API, i.e. to take advantage of computer mice generating data at 800 DPI or even more. Additionally, Microsoft introduced XInput to allow applications to receive input from the Xbox 360 Controller. Hence, game developers have to cope with up to three different APIs when designing ... |
| | Total Hits: 103 | Today: 0 | Author: Wayne Ye | Rating:  |
| |  During the past few days, I was studying Project Time Management in PMBOK, preparing for the upcoming PMP exam on 4th December 2010. While I spent a few hours on understanding/mastering EVM, I log my memory here.... |
|
|
|
|
|
|