473,386 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Using shortcuts and Regular Expression

Hi,

I want to use shortcuts such as F6 or F7 to do something. When i apply event to a blank form, it works well. But if there are some controls on the form like textbox or something else, they are selected automatically, so form events doesn't work :(
(There is one way i know to do that, to add unvisible menu items and give them shortcuts but i think it is not a good programming)

And my other problem, is there any Regular Expression Editor inside of VB editor?? Can i find already defined regular expression in anywhere??

Thank you so much...

Nov 21 '05 #1
3 1103
Set the form's KeyPreview property to True and try?

"Çinko" <cozgel(erase)@hotmail.com> wrote in message
news:e$**************@TK2MSFTNGP09.phx.gbl...
Hi,

I want to use shortcuts such as F6 or F7 to do something. When i apply event
to a blank form, it works well. But if there are some controls on the form
like textbox or something else, they are selected automatically, so form
events doesn't work :(
(There is one way i know to do that, to add unvisible menu items and give
them shortcuts but i think it is not a good programming)

And my other problem, is there any Regular Expression Editor inside of VB
editor?? Can i find already defined regular expression in anywhere??

Thank you so much...
Nov 21 '05 #2
Shortcuts works. Thank you Shiva..

But now, there are some new problems. After i apply keypreview=true, and
keyboards events i couldn't fill textbox properly.. It starts to clears text
inside of textboxes frequentl out of my control. If i set keypreview=false,
events doesn't work but textbox problem disappears.

Do you have any idea?

Thanks..


Nov 21 '05 #3
Hi,
What KeyPreview=True does is that it gives the form a chance to handle the
keyboard events before they are sent to the relevant controls (textbox,
etc). So, probably the form-level keyboard handler code is causing the
problem?
If you want to handle certain keys at the form-level and don't want them to
pass to other controls, set the Handled property of the eventhandler
parameter (KeyPressEventArgs or KeyEventArgs) to True.

"Çinko" <cozgel(erase)@hotmail.com> wrote in message
news:eP**************@TK2MSFTNGP14.phx.gbl...
Shortcuts works. Thank you Shiva..

But now, there are some new problems. After i apply keypreview=true, and
keyboards events i couldn't fill textbox properly.. It starts to clears text
inside of textboxes frequentl out of my control. If i set keypreview=false,
events doesn't work but textbox problem disappears.

Do you have any idea?

Thanks..

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Bradley Plett | last post by:
I'm hopeless at regular expressions (I just don't use them often enough to gain/maintain knowledge), but I need one now and am looking for help. I need to parse through a document to find a URL,...
4
by: Buddy | last post by:
Can someone please show me how to create a regular expression to do the following My text is set to MyColumn{1, 100} Test I want a regular expression that sets the text to the following...
11
by: Dimitris Georgakopuolos | last post by:
Hello, I have a text file that I load up to a string. The text includes certain expression like {firstName} or {userName} that I want to match and then replace with a new expression. However,...
5
by: Ryan | last post by:
HELLO I am using the following MICROSOFT SUGGESTED (somewhere on msdn) regular expression to validate email addresses however I understand that the RFP allows for "+" symbols in the email address...
3
by: James D. Marshall | last post by:
The issue at hand, I believe is my comprehension of using regular expression, specially to assist in replacing the expression with other text. using regular expression (\s*) my understanding is...
9
by: Pete Davis | last post by:
I'm using regular expressions to extract some data and some links from some web pages. I download the page and then I want to get a list of certain links. For building regular expressions, I use...
6
by: deepak_kamath_n | last post by:
Hello, I am relatively new to the world of regex and require some help in forming a regular expression to achieve the following: I have an input stream similar to: Slot: slot1 Description:...
1
by: Allan Ebdrup | last post by:
I have a dynamic list of regular expressions, the expressions don't change very often but they can change. And I have a single string that I want to match the regular expressions against and find...
14
by: Andy B | last post by:
I need to create a regular expression that will match a 5 digit number, a space and then anything up to but not including the next closing html tag. Here is an example: <startTag>55555 any...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.