|Total Hits: 4 | Today: 0||Author: Ghanashyam Nayak|| Rating: |
This article shows you that how you can use of the Stopwatch class in your application....
|Total Hits: 4 | Today: 0||Author: Amund Gjersøe|| Rating: |
I had some problem getting connected to an Apache server. It returned a 401, not recognizing my credentials.
Hans Liss had a solution to this problem by manually adding credentials to the message header:...
|Total Hits: 8 | Today: 0||Author: Ronee Noor|| Rating: |
This feature is fascinating. Extension Methods give us the ability to include custom methods with the existing types w/o inheriting the actual type. Gives you the ability to invoke the methods as if they are instance methods on the actual type. But at compile time, an extension method has lower priority than the instance methods. Suppose you created an extension method name IsNullOrEmpty for the type String. The method invocation will always pick the one which is in the instance and ignore your ...
|Total Hits: 12 | Today: 0||Author: trushant pachnekar|| Rating: |
Cryptarithm is a genre of mathematical puzzles in which the digits are replaced by letters of the alphabet or other symbols. (See the figure below.) If the same letter occurs more than once, it must be assigned the same digit each time. No two different letters may be assigned the same digit. So, the problem is to find the unique digit corresponding to a unique letter. Cryptarithmetic is the science and art of creating and solving cryptarithms. J. A. Hunter coined the word alphametic to designat...
|Total Hits: 2 | Today: 0||Author: Bert ONeill|| Rating: |
When it comes to 'Unit Testing' your code - you will want to test a small code base at a time (i.e. each method within your respective classes). This will led to greater stability within your overall project, if you know that each method does what it is expected. When testing the working of a method, you will want to exclude external calls to databases, third party dlls or your own services, so that you can better 'Black Box Test' your application. To exclude these external resources from your c...
|Total Hits: 6 | Today: 0||Author: Vulpes|| Rating: |
There has been a lot of hysteria about the 'goto' statement since the famous computer scientist, Edsger Dijkstra, said in 1968 that he considered it to be "harmful".
In those days, he had a point because the 'goto' statement produced a lot of spaghetti code particularly by those using early versions of the BASIC programming language....
|Total Hits: 3 | Today: 0||Author: Jani Giannoudis|| Rating: |
Sometime it's handy, to change the display value using a custom format. The FormattingConverter converts a value, by reflecting the String.Format method:...
|Total Hits: 4 | Today: 0||Author: andrewcates|| Rating: |
DotNetNuke is an open source web application framework ideal for creating, deploying and managing interactive web, intranet and extranet sites. It is very well supported; just take a look at Snow Covered. Unfortunately, VB and C# programmers don't cooperate as best they should, and take a mutually exclusive choice between the languages. This is unfortunate because DotNetNuke is a very well developed framework for ASP.NET that a lot of C# programmers do not want to look at....
|Total Hits: 1 | Today: 0||Author: Steppenwolfe|| Rating: |
Why write a tooltip class, when there is a perfectly good class built in to .NET? When I first looked at the tip class, my initial impression was, this will make things so much easier! So, I hooked up the draw event handler to custom draw my tips, then typed e. to look through the parameters, but wait a sec.. where's the handle property? I took a closer look at the tip properties and.. seems like they forgot a couple of little things when they wrote the class. Little stuff, that we will never ne...
|Total Hits: 36 | Today: 0||Author: Mark de Haan|| Rating: |
For a project I'm working on, I had to create transparent fuzzy drop shadows similar to those found in various Windows applications. Want to have them too? Then read on! Or just download the sources......
|Total Hits: 7 | Today: 0||Author: Matthew Cochran|| Rating: |
When trying to build maintainable, reusable, and flexible C# code, the object oriented nature of C# only gets us 50% of the way there. Programming to interfaces can provide us with the last 50%. Interfaced-based design provides loose coupling, true component-based programming, easier maintainability and it makes code reuse much more accessible because implementation is separated from the interface....
|Total Hits: 11 | Today: 0||Author: Dom Millar|| Rating: |
This tutorial is an short introduction to using Test Driven Development (TDD) in Visual Studio 2010 (VS2010) with C#. Like most of my examples it's based on a game.
By completing this tutorial you will:
* Get a taste of TDD through a series of small iterations;
* Learn how VS2010 provides TDD support through a number of new features; and
* Learn a number of C# 4.0 features....
|Total Hits: 9 | Today: 0||Author: Srihari Chinna|| Rating: |
We have good future in C# 4.0 interms of declaring parameters with default values, So that the consuming code may or may not consume them and also this gives option that the initializing code may or may not require to assign value to the parameters. This was not the case with till C#4.0....
|Total Hits: 15 | Today: 0||Author: Vagif Abilov|| Rating: |
One of the best areas to use a functional language is to apply it to symbolic calculations. Like transforming algebraic expressions or evaluating function derivatives. I remember how I was impressed many years ago when I looked at a program in Prolog that occupied not more than one computer screen but could tell me that derivative of sin(x) was cos(x). So I wanted to do the same in F#....
|Total Hits: 46 | Today: 0||Author: Taj|| Rating: |
This is a simple game written in C# in which user presses Up, Down, Left, Right arrow keys to play this game.
The objective of this game is to arrange 1 to 15 numbers in ascending order where the numbers in grid are in random.
User will have 10 minutes of time to complete this game....
|Total Hits: 23 | Today: 0||Author: Sushant Joshi|| Rating: |
Usually sending mails from Windows application is tedious tasks, also many times you may have to enable IIS on eaach machines. The article describes an alternate mechanism of sending mail from Windows application....
|Total Hits: 121 | Today: 0||Author: Arindam Sinha|| Rating: |
Just recently I have started working on Windows Mobile and was assigned with a task to install an existing application in one of the systems with out Visual Studio 2005 or 2008. This was required for a demo purpose. Before I start describing the process, I would mention few details on - how Windows Mobile Application is tested.
For people looking for some details on designing or developing Windows Mobile Application, this is not ment for that. This would help the people who wants to know ways...
|Total Hits: 37 | Today: 0||Author: The 5th Rogue|| Rating: |
Have you ever searched for something small on the internet, only to find it blown up and confusing? If so, you are like me. Below I have listed how to use the ServiceController to control installed services. After understanding the code below, you will be able to Start, Stop, and get the status of a service. The first thing you need to do is, make a Reference to the System.ServiceProcess in the Solution Explorer of Visual Studio. To some of the veterans out there, they are probably asking, Why I...
|Total Hits: 26 | Today: 0||Author: Robert Saccone, Alexander Taskov|| Rating: |
Windows Vista ships with a raft of new and exciting technologies for developers, including Windows® Presentation Foundation, Windows Communication Foundation, and Windows Workflow Foundation. In fact, Windows Vista™ has introduced so many new .NET-friendly technologies that it is easy to overlook all the new features and functionalities that native C/C++ developers can put to work in their apps. In this article, we discuss some of the new capabilities in Windows Vista that impact native C/C++ de...
|Total Hits: 99 | Today: 0||Author: Chris Hambleton.|| Rating: |
The DNN Module Packager is a utility that creates a DotNetNuke manifest file and packages module into a ZIP file for deployment to a DotNetNuke 3.x or DotNetNuke 4.x hosting site. You can edit the manifest file before packaging and also add any other files to the package that your module needs to function properly in a DotNetNuke environment. The DNN manifest file is simply an XML file that contains information about the Module, it's DNN-interface controls (like View, Edit, and Settings controls...