1 Replies - 2910 Views - Last Post: 05 November 2009 - 09:02 AM Rate Topic: -----

#1 aliceyeap  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 22-October 09

How to set the length for edit control. Please help me!

Posted 04 November 2009 - 06:35 PM

Hi all,

I now using Visual C++ (Visual Studio 2005) for my project. i face some problem in set the maximum length for my edit control(text box).

i have 3 edit control in the same dialog. i want set the maximum length for each edit control = 5.

following are the 3 ID of edit control in same dialog:
IDC_EDIT_MCNO
IDC_EDIT_MCSERIALNO
IDC_EDIT_LOCATION

The dialog ID is: IDD_MACHINE

Please guide me for set max length.

Thanks very for your help. i will very appreciate. :)

Regards:
Alice :)

Is This A Good Question/Topic? 0
  • +

Replies To: How to set the length for edit control. Please help me!

#2 hackterr  Icon User is offline

  • D.I.C Regular

Reputation: 21
  • View blog
  • Posts: 293
  • Joined: 13-August 09

Re: How to set the length for edit control. Please help me!

Posted 05 November 2009 - 09:02 AM

By length do you mean the display length of the edit control or you mean the number of characters it accepts?
If you wanna change just display margins
See this
otherwise if you are talking about characters
See This
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1