Re: edit control problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I am a believer in realtime data validation. However, taking an action like this will be
disruptive to the user interface and would not be appropriate. Take a look at my
validating edit control on my MVP Tips site for an example of a highly-responsive edit
control but one which does not preempt the user by popping up a messagebox.
joe

On Fri, 18 Aug 2006 07:54:51 -0700, "Z.K." <nospam@xxxxxxxxxx> wrote:

Well, I do have a reason. I want the user to do something else before they
actually enter any data in the edit box. I could wait and have them enter
an entire screen and wait for them to press the return key, but I wanted to
do whenever they were to press a key in the editbox. It seemed like the
best way to do it, but maybe I need to think of another way.

Z.K.

"Ajay Kalra" <ajaykalra@xxxxxxxxx> wrote in message
news:1155846547.809954.286690@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
MessageBox("The File to be printed has not been selected,\n Select afile
first!", "File Not Selected", MB_ICONSTOP | MB_OK);
m_Edit_Data.SetWindowText("");

This is your problem. Why would you want to do this in OnEnChange...?

---
Ajay


Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: Not keeping backward compatibility.
    ... > backward compatibale stops it from being devloped more freely, ... > wether is it worthed by holding to the past to slow down the progess. ... decided to recommend Project because its user interface was the "same" as ... (something about one version allowed clicking anywhere on a label or edit ...
    (borland.public.delphi.non-technical)
  • How can I communicate with a service?
    ... I'd like to design a software that is mainly made of a service and that ... would need a user interface to view and edit the configuration. ...
    (microsoft.public.vc.language)
  • Instance generation by code
    ... I have a user interface and would like a user could edit a ... instance appears in a textarea. ... Studio interface? ...
    (microsoft.public.biztalk.general)
  • Get List of MS SQL Servers
    ... I need to write a user interface so users can edit the connection string. ... How do I get the list of MS SQL Server servers so I can populate a dropdown ...
    (borland.public.delphi.database.ado)