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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing EditBox Properties maxwidth

Status
Not open for further replies.

BloodMoon

Programmer
Dec 17, 2004
4
PH
This is rather a lame question, but can anyone help me change the properties of controls. My problem is I cant set the length of maximum characters that my edit box could handle. Im using visual C++ 6.0.
 
Thanks for the reply. Hmmmm, well Im just starting learning workarounds on visual c++. Could you give me sample codes on how to change/set properties of controls such as edit box? I really appreciate your reply.
 
Could you be more specific? What do you want to change? Check out the CEdit member functions on MSDN if you want to know what all you can change, or use intellisense to see what's available.
 
Oops sorry I thought I have sent my last updated reply. Well, I figured out what I want to do shortly after I post my last message, I was suppose to send new message but I guess it had an error didnt send it. Now, I have an edit box(IDC_E1) that could only accept 5 chars. I also had a button(IDC_B1) that pass character 'a' on my edit box. The problem is when I use my IDC_B1 and click them more than 5 times, my IDC_E1 can exceed more than 5 characters. What I want is to limit my IDC_E1 to 5 characters whether I type to it, or use my IDC_B1.Anyway, what I did is I just manually check the length of the edit box. Is there a better way to do it? Thanks again for the reply.
 
Ah ok, so I guess Im on the right track then. Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top