|
|
|
|
|
Total Hits: 58 | Today: 0
|
Author: Anders Malmen
|
Rating:
|
|

There's a lot of different aspects in creating a custom asp.net web control. The user of the control should only need to place the control on the page and after that the control should be self sustained. In other words register client side scripts, client side CSS and client side images. This article with guide you in creating a custom control that uses web resources for scripts, CSS and images and how to init javascript code for each control on the page. We will cover the basics of using classe...
|
|
|
|
Total Hits: 158 | Today: 0
|
Author: vijayaprasen
|
Rating:
|
|

Recently I came across a requirement for a tab control to be closed from the header itself. This means the user doesn't need to switch to any tab page in order to close it. The perfect example for this one is Firefox browser. In Firefox, the user can open as many tabs as he wants and he can close any tab at any time without opening the tab. I tried Googling a solution and didn't find anything that was exactly what I wanted. Then I thought about implementing my own tab control with the same funct...
|
|
|
|
Total Hits: 54 | Today: 0
|
Author: cesarsouza
|
Rating:
|
|

Once, while playing a bit with user interface design, I felt the need to display some text with something similar to a border effect to improve readability of the text on transparent backgrounds. Unfortunately, not only the Framework didn't provide such a functionality, I also couldn't find a free implementation anywhere on the Web. Considering the situation, I decided to start creating my own label control with text border capability....
|
|
|
|
Total Hits: 62 | Today: 0
|
Author: Michael Chapman
|
Rating:
|
|

After creating an IP address control for the .NET Framework, I applied the lessons learned towards creating an abstract control. This control can be easily configured to allow input of any value that is a collection of numeric fields, such as an IP address, IP address with ports, IPv6 address, MAC address, telephone number, or Social Security Number. FlexFieldControl is an abstract UserControl-based class that aggregates n controls of type FieldControl and n+1 controls of type SeparatorControl. ...
|
|
|
|
Total Hits: 56 | Today: 0
|
Author: Stephan Depoorter
|
Rating:
|
|

This article shows how to handle flat files containing fixed width datafields, using .NET custom attributes. It doesn't explain custom attributes, because I think there has already been enough written on that subject....
|
|
|
|
Total Hits: 42 | Today: 1
|
Author: Juval Lowy
|
Rating:
|
|

The .NET Framework can use contexts as an object's execution scope and intercept calls going to and from the object, similar to the way COM+ provides component services. What is new with this mechanism is that the runtime allows developers to take part in the interception chain and add powerful services, thus extending existing component services. This in turn decouples the business logic from the system plumbing and simplifies long-term maintenance. Presently, .NET contexts and interception are...
|
|
|
|
Total Hits: 247 | Today: 2
|
Author: Brian Mains
|
Rating:
|
|

Enterprise Library 3 contains the ability to validate a business object and this validation occurs through a standard range of validators. The Framework also provides the ability to create custom validators, which is where this article will continue on to discuss the additional features of the Validation Block....
|
|
|
|
Total Hits: 46 | Today: 0
|
Author: Phil Booth.
|
Rating:
|
|

XForms is an important recommendation from the W3C that enables complex XML-handling applications to be defined in a simple, declarative syntax. This article demonstrates how you can harness this technology in your own C# applications. However, the same techniques may be easily applied to other .NET languages, or indeed any programming language that has a COM binding. The XHTML and XForms rendering power at the heart of it all will be provided by formsPlayer, a free XForms processor....
|
|
|
|
Total Hits: 144 | Today: 0
|
Author: Jonathan Awotwi.
|
Rating:
|
|

In the quest to build the next big user-driven web application, very good developers often tend to brush a number of features under the carpet, often classifying them as irrelevant. Unfortunately, when you have two or more web communities that essentially do the same thing, as is often the case these days, it's the little things that will determine which website secures a more dedicated user base...
|
|
|
|
Total Hits: 261 | Today: 0
|
Author: msahin.
|
Rating:
|
|

Sorry, for bad my english. This is useful and simple control. Control is created two object. Fisrt OutlookStyleNavigateBar object. This is usercontrol. Second TabButton object. This is base on ToolStrip. Included source code and sample form in zip file. If change of control and subcontrols color use OutlookStyleThemeColor class and set Navigatebar (for all objects) or TabButton (only tabbutton)....
|
|
|
|
Total Hits: 475 | Today: 0
|
Author: lxwde
|
Rating:
|
|

A Forms Editor allows you to add, move, resize, and delete controls on your form. The dialog editor of VC6 and the Forms Designer of VS.NET are Forms Editors we commonly use at design time. In the .NET framework, this functionality is wrapped as several services, to enable programmers to write their own Forms Editors that create forms in a manner similar to the way used in the Forms Designer of VS.NET. By relying on the .NET framework, the programmer doesn't need to care about how to select/move...
|
|
|
|
Total Hits: 167 | Today: 0
|
Author: Martin Cook
|
Rating:
|
|

Many, many moons ago I extended the MFC status bar by creating a version capable of housing almost any type of control. I seem to recall that my code even supported VBX controls. (VBX? yuk!) Anyway, this article presents a simpler version that targets ActiveX controls. The demo program illustrates things by hosting two ActiveX controls on the status bar of an MFC application....
|
|
|
|
Total Hits: 35 | Today: 0
|
Author: nazishrizvi
|
Rating:
|
|

This article shows a how to make a custom Wizard control using the Chain of Responsibility pattern, which passes and returns data between each step. This sample creates a wizard control through Windows Forms. Every step is responsible for its own validation and responsibility is broken on each step rather then a single form. Previously we implemented this through panels or counter values, but using these techniques we will face some difficulty passing the data from one screen to another. I have ...
|
|
|
|
Total Hits: 56 | Today: 0
|
Author: Sandeep. Vaidya
|
Rating:
|
|

Visual Studio custom action provide the option to add predefined custom dialogs, however there is no option to add the our own custom dialog. Following class can be used to add the custom dialog. We can create a DLL using the following class and custom dialogs. It is usefull while custom actions are required in the installer while Visual Studio .Net 2003 is used to build the setup using the setup/deployment project. Visual Studio 2003 dont have option to add the custom dialogs. It has some...
|
|
|
|
Total Hits: 26 | Today: 0
|
Author: Gael Fraiteur
|
Rating:
|
|

This is the second article in a series of two, with this one going into the details of the real-world implementation of custom attributes that actually add behaviors to your code, namely performance instrumentation and field validation....
|
|
|
|
Total Hits: 41 | Today: 0
|
Author: Igor Ladnik
|
Rating:
|
|

The HotSpot control constitutes a set of irregularly shaped visual elements acting as multi-state buttons. Each of these visual elements may have several states. Every state is characterized by its own image representation. Left mouse button click on a particular element leads to its transition from one state to another. Such a transition is depicted by change of element’s image from a picture corresponded to initial state to a picture corresponded to a new state. Click on a particular element m...
|
|
|
|
Total Hits: 40 | Today: 0
|
Author: Eric Woodruff
|
Rating:
|
|

Sandcastle is the tool used for creating MSDN-style documentation from .NET assemblies and their associated XML comments files. The current version is the March 2007 CTP. My first article about Sandcastle describes the Help File Builder that acts as a front end to make it easier to manage and build help files using it. This article will describe how you can customize the BuildAssembler.exe tool to add new features and manipulate the actual help topics as they are being generated. This is accompl...
|
|
|
|
Total Hits: 44 | Today: 0
|
Author: Paul DiLascia
|
Rating:
|
|

Q When creating a MessageBox, I can easily display a question mark icon by using the flag MB_ICONQUESTION. But how can I put that same icon on my own dialog or form? Where or how can I find the icon?...
|
|
|
|
Total Hits: 40 | Today: 0
|
Author: Fei Liu.
|
Rating:
|
|

This article shows how to use .net windows form controls with managed directx content. Most books/tutorials use a winform strictly with MDX content. But people are more interested in using winform controls together with MDX. This question is frequently asked and not well answered. Here I present a small code project using .net 2.0 and visual studio 2005....
|
|
|
|
Total Hits: 64 | Today: 0
|
Author: Gael Fraiteur.
|
Rating:
|
|

There are a lot of powerful logging frameworks, but every one of them requires some painful work: the addition of boilerplate code to every method. And what if, in the middle of the project, you decide to switch from one framework to another? You'll have to modify all the logged methods, and there may be thousands!
Logging is painful because, like most non-functional requirements (security, transactions, caching …), it crosscuts all functional requirements. If you have one hundred busines...
|
|
|
|
|
|