By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,997 Members | 1,098 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,997 IT Pros & Developers. It's quick & easy.

How to insert characters at cursor's current location

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
>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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.