You are here:

FoxPro/prolem regarding vfp

Advertisement


Question
QUESTION: i want to disable the functionality of mouse click while entring the data in a text box, just want to take the action after pressing enter key , if mouse buttion has beem pressed by the user no action should take place.

ANSWER: Hi Shambhu,
   Clicking the textbox puts the focus into it, hence you can edit it. If you want to disable editing, AFAIK, the only way is to disable it and when you press enter in some other textbox, enable it and set the focus to it.

Best regards,
Markish

---------- FOLLOW-UP ----------

QUESTION: i am entering a number for searching it after pressing enter key, but in the same time mouse click is working the same job as enter key, if placing the mouse pointer any where whithin the form and just click there , the same task will be repeated.... So, i want to disble the functionality of mouse buttons while entering the data ...
I think this time u better understand what help i need.

Answer
Hi Shambu,
   I don't understand exactly what you are trying to do. As far as I understand, I think, you are trying to have a search command button
Then add the code to search in the 'command button' click event.

Let me know the exact issue so that I can help you.
Best regards,
Markish

FoxPro

All Answers


Answers by Expert:


Ask Experts

Volunteer


Markish

Expertise

I can answer general questions related to Foxpro from Version 2.0 to 9.0. I'll try to answer them as quickly as possible.

Experience

I've been into Dbase programming from age of 11. I've worked in versions from FoxPro 2.0 and Foxbase.
Education/Credentials
I've done my B.Tech (IT) with distinction from Anna University, Chennai - India.

Education/Credentials
I've done my B.Tech (IT) with distinction from Anna University, Chennai - India.

©2012 About.com, a part of The New York Times Company. All rights reserved.