Click here to Skip to main content
Licence CPOL
First Posted 9 Nov 2006
Views 17,450
Bookmarked 12 times

The Fast Input TextBox Control

By | 9 Nov 2006 | Article
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.

 // 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)

About the Author

Le Nhat Quang

Web Developer

Vietnam Vietnam

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralRemark PinmemberBalazs Zoltan3:19 10 Nov '06  
GeneralRe: Remark PinmemberLN Quang5:17 10 Nov '06  

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

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

Permalink | Advertise | Privacy | Mobile
Web01 | 2.5.120517.1 | Last Updated 9 Nov 2006
Article Copyright 2006 by Le Nhat Quang
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid