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!

Which control should I use?

Status
Not open for further replies.

mpsoutine

Programmer
Jan 6, 2003
87
US
Hi,

Can anyone point out which type of control will allow me to uses the return key when entering text. My program is set up as follows: Click on an edit button and a dialog box appears. This dialog consists of various edit controls for entering a single line of text. I'm looking for a control that will allow me to enter muliple line of text. All the information from this dialog box is then used to update a database.
 
A multi line edit control will do that if you just check the Want Return property or set it to true if you are using VC7.

-pete
 
You can use an ordinary CEdit control for this.

Look at the "styles" tab on the controls properties, check "Multi line" and "Want return" and you can use the CEdit as a multi line text control - and pressing Return won't click the default button while the edit control has focus.

CMR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top