The Case for Components

In Paul Kimmel's latest column from CodeGuru.com, he tackles the hype about classes and components. In doing so, he even presents you with information on the splitter control within Visual Basic .NET.

provided by: 
Originally published at Internet.com


Occasionally Santa Claus gets a Christmas wish list that requires a public response. Sometimes writers ask for world peace, sometimes it's "what's the meaning of life?" but this year the question was "what's the big deal about classes and components?"

Rather than provide a stocking stuffer for one little boy or girl, Santa sent the response to me. (We have pretty good distribution at codeguru.com, and the audience is appropriate.)

Many of you may have firmly resolved this issue in your minds one way or the other. To make my case though, I have demonstrated a splitter capability without making the capability into a control. You may find that code useful, and there may be some perspectives relative to components that you haven't thought of yet. You are invited to read on.

When you have finished reading this article - for those of you that need a splitter, you can use the code in the listing - you will know why classes and components are a necessary evolution in programming.

Implementing a Quick Splitter Control in VB6



If you haven't seen one before, a splitter control is usually implemented as a vertical or horizontal bar representing a division in the screen real estate used by forms. By dragging the splitter control users can change the relative amount of form real estate based on the direction the splitter is moved. For example, drag a vertical splitter left and the amount of spaced allocated to the left of the splitter is decreased and the right side is increased. Drag the splitter right and the opposite effect occurs. More space left and less space right. Figure 1 shows the splitter as it appears implemented in this article...

Read article at Internet.com site
Related Articles
- Validating Date Entries in Forms
You may wonder how you can ever perform data entry validation for dates in forms. The problem is not so much in the calculations as it is in the wide variety of acceptable date formats around the world.
- Introducing the .NET Framework and JScript .NET
- Auto repositioning/resizing of child controls (using C++ templates)
- Diary of a Developer: Send Me Your Questions
- Using PHP Operators
- Learning PHP: Installing and Configuring
- Font Properties
- Personal search engine
- The Scrolling Functions
Regional Articles
- The Case for Components Alabama
- The Case for Components Alaska
- The Case for Components Arizona
- The Case for Components Arkansas
- The Case for Components California
- The Case for Components Colorado
- The Case for Components Connecticut
- The Case for Components DC
- The Case for Components Delaware
- The Case for Components Florida
- The Case for Components Georgia
- The Case for Components Hawaii
- The Case for Components Idaho
- The Case for Components Illinois
- The Case for Components Indiana
- The Case for Components Iowa
- The Case for Components Kansas
- The Case for Components Kentucky
- The Case for Components Louisiana
- The Case for Components Maine
- The Case for Components Maryland
- The Case for Components Massachusetts
- The Case for Components Michigan
- The Case for Components Minnesota
- The Case for Components Mississippi
- The Case for Components Missouri
- The Case for Components Montana
- The Case for Components Nebraska
- The Case for Components Nevada
- The Case for Components New Hampshire
- The Case for Components New Jersey
- The Case for Components New Mexico
- The Case for Components New York
- The Case for Components North Carolina
- The Case for Components North Dakota
- The Case for Components Ohio
- The Case for Components Oklahoma
- The Case for Components Oregon
- The Case for Components Pennsylvania
- The Case for Components Rhode Island
- The Case for Components South Carolina
- The Case for Components South Dakota
- The Case for Components Tennessee
- The Case for Components Texas
- The Case for Components Utah
- The Case for Components Vermont
- The Case for Components Virginia
- The Case for Components Washington
- The Case for Components West Virginia
- The Case for Components Wisconsin
- The Case for Components Wyoming
Related Articles
- Validating Date Entries in Forms
You may wonder how you can ever perform data entry validation for dates in forms. The problem is not so much in the calculations as it is in the wide variety of acceptable date formats around the world.
- Introducing the .NET Framework and JScript .NET
- Auto repositioning/resizing of child controls (using C++ templates)
- Diary of a Developer: Send Me Your Questions
- Using PHP Operators
- Learning PHP: Installing and Configuring
- Font Properties
- Personal search engine
- The Scrolling Functions

Rss   Delicious   Digg   Add To My Yahoo   Add To My Google   Bookmark   Search Plugin

Topics:
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML