473,769 Members | 5,846 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SendKeys.Send(" ^A")

All SendKeys.Send like ^C, ^V, ^X work in my form with textboxes but
SendKeys.Send(" ^A") doesn't work ! ??

i have a bip error windows ! ?

Nov 21 '05 #1
6 5326
"ucasesoftw are" <uc***********@ hotmail.fr> schrieb:
All SendKeys.Send like ^C, ^V, ^X work in my form with textboxes but
SendKeys.Send(" ^A") doesn't work ! ??


The textbox control doesn't support selecting the whole text using a
keyboard shortcut. You may want to use the code below instead:

\\\
If TypeOf Me.ActiveContro l Is TextBox Then
Dim txt As TextBox = DirectCast(Me.A ctiveControl, TextBox)
txt.SelectAll()
End If
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2
"ucasesoftw are" <uc***********@ hotmail.fr> schrieb:
All SendKeys.Send like ^C, ^V, ^X work in my form with textboxes but
SendKeys.Send(" ^A") doesn't work ! ??


The textbox control doesn't support selecting the whole text using a
keyboard shortcut. You may want to use the code below instead:

\\\
If TypeOf Me.ActiveContro l Is TextBox Then
Dim txt As TextBox = DirectCast(Me.A ctiveControl, TextBox)
txt.SelectAll()
End If
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3
I have a problem with your code cause i have a MDI application
me.activateCont rol is the child :( and not the textbox in the child
form

Nov 21 '05 #4
I have a problem with your code cause i have a MDI application
me.activateCont rol is the child :( and not the textbox in the child
form

Nov 21 '05 #5
Here is the solution for mdi Child
If TypeOf Me.ActiveMdiChi ld.ActiveContro l Is TextBox Then
Dim txt As TextBox =
DirectCast(Me.A ctiveMdiChild.A ctiveControl, TextBox)
txt.SelectAll()
End If

Thx a lot again

Nov 21 '05 #6
Here is the solution for mdi Child
If TypeOf Me.ActiveMdiChi ld.ActiveContro l Is TextBox Then
Dim txt As TextBox =
DirectCast(Me.A ctiveMdiChild.A ctiveControl, TextBox)
txt.SelectAll()
End If

Thx a lot again

Nov 21 '05 #7

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

Similar topics

3
7214
by: Kurda Yon | last post by:
Sorry for a very stupid question. Can you tell me what does the following html source does if I press button "Send"? If I read this code by Netscaspe from my local file system and then press "Send", I see in my browser directory where the considered html source is located. If I publish the given html source, open published page and again press "Send" nothing changes... What I want to do, is to know what choice did people who were visiting...
2
6275
by: Gary | last post by:
I am trying to use the "System.Windows.Forms.SendKeys" class for triggering the Ctrl+P key. Syntax: System.Windows.Forms.SendKeys.Send("^(P)"); This is not working ..what could be the reason..? Situation: I have a menu in my form, which is given a short key "Ctrl+P", now when the
6
31111
by: Gary | last post by:
Hi, I am trying to use the "System.Windows.Forms.SendKeys" class for triggering the Ctrl+P key. Syntax: System.Windows.Forms.SendKeys.Send("^(P)") This is not working ..what could be the reason..?
4
4286
by: Rvo | last post by:
Hi all, I need to use the Netware "send" function to send messages to some/all attached netware users on a server. However, I can't find any documentation on this topic on the Novell site or anywhere else. If any of you has experience on this topic (or knows of any online documentation about it) I would realy appreciate your help. (Which references do I set? Which class to instatiate? What methods do I need to call, ...)
0
346
by: ucasesoftware | last post by:
In my mainMenu i have items Copy, cut, paste... I have a form with a lot of textbox In my sub of item copy i have : SendKeys.Send("^c") but if the user select a text in a textbox... click Copy in the mainMenu... it doesn't work
0
364
by: ucasesoftware | last post by:
All SendKeys.Send like ^C, ^V, ^X work in my form with textboxes but SendKeys.Send("^A") doesn't work ! ?? i have a bip error windows ! ?
5
1166
by: Sweet.mhtrq | last post by:
I want to use "send" to send a string like Code: send "p" & OutputString if OutputString is "1234" , "p1234" will be sent. but it is sent too fast, my robot' cpu cant receive the whole string. Sometime it
1
5892
by: jabdulius | last post by:
Hi all, newb to Perl here. I'm trying to use the Net:SNPP package to send a page, and getting the above error when trying to send. Here's my code: my $host = "snpp.cingular.com:444"; my $snpp = Net::SNPP->new( $host ); $snpp->send( Pager => $to, Message => $message,); $snpp->quit;
1
6092
by: groupie | last post by:
Hi, I'd like to know how to implement the "Forgot Password" feature on many websites which require a login, exactly like this ebay example: http://cgi4.ebay.com/ws/eBayISAPI.dll?UserIdRecognizerShow I've already retrieved the users password from the database - I just need to send it to the email address entered. From reading many posts, I need a server-side script and rather not use form mailto: nor use javascript on the users PC.
0
9586
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10043
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9990
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8869
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7406
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3956
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2814
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.