Click here to Skip to main content
15,867,308 members
Articles / Programming Languages / C#
Article

The Fast Input TextBox Control

Rate me:
Please Sign up or sign in to vote.
2.50/5 (11 votes)
9 Nov 2006CPOL 27.3K   1K   14   2
Design time programming sample with fast input textbox control

Sample Image - fTextBox_image.gif

Introduction

When I worked on AMSale project, my boss asked me to develop a control to speed up inputing. Such as, when you have to input bills, you have to input customer info and the problem is how to remember exactly the customer info. So I decide to write this to help inputing faster.

Background (optional)

I've read a source code in this code-project about a multi column combobox, and my control is based on that with some addition design-time programming skill I've show in this project to show how to use verbs, properties-design ...

Using the code

This control helps you to input faster and more exactly. To configure this control, you have to assign values for properties by code or in design mode.

Properties to configred : DataSource (must be on System.Data.DataTable Type), SearchField, KeyField.

SearchField : the control will use this field name to look up and return the text to TextBox.

KeyField     : this field holds the key value for represented item.

C#
 // configure properties of control by code 
<CODE> this.fTextBox.DataSource = dataset11.person;
 this.fTextBox.KeyField = "id";
 this.fTextBox.SearchField = "Name";</CODE>

It's very simple, right?

Points of Interest

History

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect Aquoz
Philippines Philippines
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralRemark Pin
Zoltan Balazs10-Nov-06 3:19
Zoltan Balazs10-Nov-06 3:19 
GeneralRe: Remark Pin
LN Quang10-Nov-06 5:17
LN Quang10-Nov-06 5:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.