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

Implementing Custom Window Controls using .net 2.0

Author: Zunnair

Custom Window Controls Defined by Programmer and Embedded in project as part of a Windows desktop application project

Visual Basic .NET also provides increased flexibility in how you employ controls. You can author them as part of a Windows desktop application project, and then use them only on forms in the project. Or you can author them in a Windows Control Library project,compile the project into an assembly, and use the controls in other projects. You can even inherit from them, and use Visual Inheritance to customize them quickly for special purposes.


To author a custom user control in Visual Basic .NET, follow these basic steps:


1. Open a new Windows Application project in Visual Studio .NET.


2. From the Project menu, choose Add User Control.


3. Add existing controls from the Toolbox to the Windows application’s forms as required. Customize the properties and event handlers for these controls as necessary.


4. Close the form or forms that make up the user control and save all files.


5. Choose Build from the Build menu.


6. Once the custom user control is built, you may add it to the Toolbox for use in Windows applications.


Source Code is Given For your Understanding.

Add Article Comment:
Name :
Email Address :
Comments :
<< Working with Context Menus in .net 2.0

Disclaimer - Privacy
© 2002-2017