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
 

FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

Home >Search > Articles & Samples > C-Sharp > Tips & Tricks


Search:
What's New - What's Hot
A Complete TCP Server/Client Communication and RMI Framework in C# .NET - Implementation  Version: 0.00     Price: $0.00  
Total Hits: 1  |  Today: 0Author: Halil ibrahim Kalkan      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this article, I will explain the implementation of an Open Source lightweight framework (named Simple Client Server Library (SCS)) that is developed to create client/server applications using a simple Remote Method Invocation mechanism over TCP/IP. It is entirely developed in C# and .NET Framework 4.0....

Full Name Tutorial Part 2  Version: 0.00     Price: $0.00  
Total Hits: 2  |  Today: 0Author: gbd77rc      Rating:  
Read Reviews | Write Review |  Your Rating: 

This is part two of the Full Name extraction tutorial (Full Name Tutorial Part 1). This part will put together the bits of information from part one into a simple utility. This utility will then be extended to show how you can load and more importantly unload an assembly in a separate application domain....

Use Using!  Version: 0.00     Price: $0.00  
Total Hits: 2  |  Today: 0Author: Nathan Staudt      Rating:  
Read Reviews | Write Review |  Your Rating: 

This is probably an obvious tip to most seasoned C# developers, but I often come across people posting code that doesn't handle cleanup properly in the event of an error. (or not at all!)...

How to perform arithmetic operations between any objects by inheriting a common arithmetic parent class in .NET 4.  Version: 0.00     Price: $0.00  
Total Hits: 2  |  Today: 0Author: Albin Abel      Rating:  
Read Reviews | Write Review |  Your Rating: 

This only works in .NET 4 Framework. Other users excuse me.
For doing simple arithmatic operations between two objects, we need to overload the operator (+,-,* etc). Also we need to specify a particular type as the argument in the operator methods. Even a generic operator method is not possible or a very tough task....

How to run method in separate thread  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Pavel Yermalovich      Rating:  
Read Reviews | Write Review |  Your Rating: 

Here is the main method which can run a method in a separate thread:...

Interaction between C# application and Oracle through custom Object  Version: 0.00     Price: $0.00  
Total Hits: 1  |  Today: 0Author: Bibhas Paul      Rating:  
Read Reviews | Write Review |  Your Rating: 

As a developer I am very much fond of OOPS and its implementation in C#. When we talk about OOPS most of us are quite comfortable to play with custom object (user defined object) and transporting them across different application layer. The real pain comes when we plan to send or retrieve custom object to/from database. More specifically this is really being a challenging task to achieve database communication through C# entity....

How to: Populate Worksheets with Data from a Database  Version: 0.00     Price: $0.00  
Total Hits: 9  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

You can access data in document-level Visual Studio Tools for Office projects in the same way that you access data in Windows Forms projects. You use the same tools and code to bring the data into your solution, and you can even use Windows Forms controls to display the data. In addition, you can take advantage of controls called host controls, which are native objects in Microsoft Office Excel that have been enhanced with events and data-binding capability. For more information, see Host Items ...

How to: Administer Security Policy for Nondefault Users Using Caspol.exe  Version: 0.00     Price: $0.00  
Total Hits: 15  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

Use the -customuser path option instead of the –user policy-level option.

The –customuser option points Caspol.exe to a specified user security configuration file. Note that –customuser must be followed by the path to the user security configuration file....

Generate and add keyword variations using AdWords API  Version: 0.00     Price: $0.00  
Total Hits: 73  |  Today: 0Author: JosipK      Rating:  
Read Reviews | Write Review |  Your Rating: 

AdWords is Google's flagship advertising product. AdWords offers pay-per-click (PPC) advertising, and site-targeted advertising for both text and banner ads.

The Google AdWords API lets developers build applications that interact directly with the AdWords platform. With these applications, advertisers and third parties can more efficiently and creatively manage their large or complex AdWords accounts and campaigns....

Print Screen in C#  Version: 0.00     Price: $0.00  
Total Hits: 97  |  Today: 0Author: jp2code      Rating:  
Read Reviews | Write Review |  Your Rating: 

I did some research and found a nice way to create a screen capture only to find that our employees continue to use the PrintScreen button. So, I needed a way to capture the PrintScreen keypress, which turned out to be trivial - after I learned the right functions to listen to....

How To Update Assembly Version Number Automatically  Version: 0.00     Price: $0.00  
Total Hits: 105  |  Today: 0Author: Sergiy Korzh      Rating:  
Read Reviews | Write Review |  Your Rating: 

In the other hand, I would like to specify those numbers automatically during the build process. Moreover it would be great to have an ability to change the whole version number or just increase the latest part of it (build number). Of course, you may say that such an operation can simply be done manually. It is true for one or two assemblies. But our usual project contains about 10-15 different assemblies and we would like to have a version number in all of them synchronized....

How to: Draw an Ellipse or a Circle     
Total Hits: 194  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

This example shows how to draw ellipses and circles by using the Ellipse element. To draw an ellipse, create an Ellipse element and specify its Width and Height. Use its Fill property to specify the Brush that is used to paint the interior of the ellipse. Use its Stroke property to specify the Brush that is used to paint the outline of the ellipse. The StrokeThickness property specifies the thickness of the ellipse outline....

CodeForms Lite v4.0 the new tool for developers FREE!     
Total Hits: 143  |  Today: 0Author: Rafael Agundis      Rating:  
Read Reviews | Write Review |  Your Rating: 

CodeForms Lite v4.0 is a high tech tool for all programmers that will let you design, on a WYSIWYG environment and using the drop a drag method, the documents that you need to print with your projects, that is, You design any complex document on the editor, and CodeForms Lite v4.0 will create in one step and free of royalties, ready to use Source Code to print your documents with professional quality....

The Power and Pain of Abstraction     
Total Hits: 85  |  Today: 0Author: Brian Mains      Rating:  
Read Reviews | Write Review |  Your Rating: 

Abstraction is a powerful technique when used properly. It can reduce the amount of coding involved, as well as make it easier to add features to existing software. However, poor abstraction can actually extend the amount of time it takes to develop software, which we'll look at in this article....

Execute Native Code From .NET     
Total Hits: 178  |  Today: 0Author: Maxim Alekseykin.      Rating:  
Read Reviews | Write Review |  Your Rating: 

If you want to prevent your program from being cracked by hackers, you can use native code. You can cipher/decipher this code, or it may be self-modifying code for more safety. Now, I'll show how you can execute such native code from your C# programs....

C-Sharpening Your Visual Basic Code     
Total Hits: 203  |  Today: 0Author: John Mueller      Rating:  
Read Reviews | Write Review |  Your Rating: 

As IT costs increase and budgets decrease, you're pressed to make your code do more. Many vendors are producing applications to extend your application code by performing some type of conversion process, so the code works in more than one environment. Elegance Technologies produces C-Sharpener for VB, which promises to convert your Visual Basic code into C#....

A Template for C# Windows Applications     
Total Hits: 960  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

Why go through the hassle of creating the same components and event handlers for every C# Windows application? This article offers a template for quickly creating menus, toolbars, buttons and other Windows components.

...

Get Current Window Handle and Caption With Windows API In C#     
Total Hits: 1675  |  Today: 0Author: Waheed Khan      Rating:  
Read Reviews | Write Review |  Your Rating: 

In this article Waheed Khan will show you how to use Windows API function GetForegroundWindow, and GetWindowText....

Get WebPage SourceCode  Version: 0.00     Price: $0.00  
Total Hits: 4  |  Today: 0Author: charles henington      Rating:  
Read Reviews | Write Review |  Your Rating: 

Get WebPage SourceCode........

How to Clear CMOS  Version: 0.00     Price: $0.00  
Total Hits: 0  |  Today: 0Author: Balkrishna Talele      Rating:  
Read Reviews | Write Review |  Your Rating: 

Add the following code in an MFC application or make Win32 Dynamic link library and then add the code. It works fine on Win9x only, it was not tested on XP/NT and hope it won't work on NT based tech. The intension of this code is only for educational purposes. This code is for those who are too lazy to open their cabinet and remove the batter. No remote CMOS clearing routine is specified, so no questions should be posted for the same....


1  2  3  4  5  6  7  8  9  10  Next >> 


Disclaimer - Privacy
© 2002-2012 DevASP.net