473,412 Members | 2,088 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,412 software developers and data experts.

How to insert characters at cursor's current location

Hi

Can anyone help. How to insert the selected item in the listbox to the
current location of the cursor in the notepad or other program.

Thanks.

Regards
Melson
May 11 '06 #1
2 1707
>Can anyone help. How to insert the selected item in the listbox to the
current location of the cursor in the notepad or other program.


You can try using the SendKeys class.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
May 11 '06 #2
SendKeys would probably work pretty well for this.

System.Windows.Forms.SendKeys -
http://msdn2.microsoft.com/en-us/lib...keys.send.aspx

Cheers,

Greg Young
MVP C#
"Melson" <we****@hotmail.com> wrote in message
news:Ov**************@TK2MSFTNGP03.phx.gbl...
Hi

Can anyone help. How to insert the selected item in the listbox to the
current location of the cursor in the notepad or other program.

Thanks.

Regards
Melson

May 11 '06 #3

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

Similar topics

1
by: M Wells | last post by:
Hi All, I've been checking the online javascript libraries for code that will show me how to insert characters at the current cursor point in a textarea form field to help me markup content I...
4
by: Ray | last post by:
I have an application that is suddenly having some very strange problems. If I step through the following code; With AppSetting conRules.ConnectionString = "Data Source=" & .Svr & ";Initial...
1
by: mef526 | last post by:
How can I set the Cursor (that is, the caret) attributes and location in the Console class?
9
by: anachronic_individual | last post by:
Hi all, Is there a standard library function to insert an array of characters at a particular point in a text stream without overwriting the existing content, such that the following data in...
0
by: jayanshsgh | last post by:
Hi We have an BizTalk interface which sends and recieve XML between two different Application. Generally after we reboot our servers during maintenance wind we used to get the error Latest...
1
by: bluer | last post by:
hi, i'm a newbie in java. I'm trying to trace a program in java and thought of using alert inside window.location, I would like to check what the si.getIdea_id_no() value is within the...
3
by: Prashant | last post by:
I was wondering is there any way to do this: I have written a class in python and __init__ goes like this: def __init__(self): self.name = 'jack' self.age = 50 import data
1
by: vituko | last post by:
plpgsql (postgresql 8.3 but I can upgrade) I can open a cursor with a dynamic query (table / column variable) : -open cursor for execute '...' ; But if I want do updates... - execute 'update...
3
by: Harm Millaard | last post by:
In the PHP file for the formmailer there is an error message that I can't get correct. It does not recognize the &uml code. What I have is this message: 'Bitte ueberpruefen Sie die erforderlichen...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
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,...
0
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...

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.