Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create a custom textbox control in VFP

Status
Not open for further replies.

VBFOXDEV35

Programmer
Mar 26, 2001
77
US
All:

I know how I can create a custom textbox contol in VB to be the following:

[textbox1] [textbox2] [label1]

textbox1 = read-only data
textbox2 = data entered by user
label1 = field definition

How does one go about this in VFP? I need to create a form that uses this field structure on numerous forms for data entry and I was wondering the best way to do this rather than placing 2 textbox and 1 label and then copy and pasting till the cows come home.

thanks all who reply.

Arty
Art DeGaetano II
Software Developer, MOUS
 
(At Least) two possibilities:
1) Create a container class that includes the two text boxes and the label. Now just drop this container on the forms you need them on.
2) Create a form class with the two text boxes and the label, and base all your forms that need these on this class.

Welcome to OOP!

Rick
 
SWEET, I thought that was how to do it but I wanted to make sure. Thank you Rick!!! Art DeGaetano II
Software Developer, MOUS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top