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

Getting Text from a RichEdit20a

P: n/a
I am primarily a web developer, but I am branching out for this project into
the world of Windows Forms.

I am looking for any help, examples, samples to show me how to retrieve text
from a RichEdit20a (or RichEdit20w) that exists in another application
running on the same box.

This is the only part of a large project that I am running that is new to
me, so I want to get this sorted as soon as possible. Then I can relax and
concentrate on actually writing the code.

Any help would be appreciated.

Thanks very much.

Matt. Davies
P.S. My apologies for a cross group post, but I wasn't sure which would be
the most appropriate group...inexperience again !
Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Nak
Hi there,

Communication between applications is not a quick subject to explain.
It's commonly called Interprocess communication, and it can be achieved
several ways,

* Remoting (The new .NET way)
* DDE (Dynamic Data Exchange, the old way)
* Windows messages - Still a very good way to communicate between
applications but has it's downfalls, especially if wanting to transfer
objects etc.
* TCP / UDP Messaging, basically what Remoting does but you would have
to implement your own protocol.

If both applications are your own then what method you use is totally up
to you, if one application is not your own then you will be limited to what
you can try. Using Windows Messages to obtain information from a rich text
box in another application *may* be your only choice, this would involve,
enumerating the child controls on the form until you find the desired
control and taking it from there.

If both apps are your own I would recommend looking into .NET remoting,
this is basically a local TCP connection between 2 applications with an XML
based protocol, objects are serialized into XML, sent through the channel
and then deserialized at the other end. I hope this information helps!

Nick.

"DancinDom" <da*******@care2.com> wrote in message
news:ez**************@TK2MSFTNGP15.phx.gbl...
I am primarily a web developer, but I am branching out for this project
into
the world of Windows Forms.

I am looking for any help, examples, samples to show me how to retrieve
text
from a RichEdit20a (or RichEdit20w) that exists in another application
running on the same box.

This is the only part of a large project that I am running that is new to
me, so I want to get this sorted as soon as possible. Then I can relax and
concentrate on actually writing the code.

Any help would be appreciated.

Thanks very much.

Matt. Davies
P.S. My apologies for a cross group post, but I wasn't sure which would be
the most appropriate group...inexperience again !

Nov 16 '05 #2

P: n/a

"DancinDom" <da*******@care2.com> schrieb im Newsbeitrag
news:ez**************@TK2MSFTNGP15.phx.gbl...
I am primarily a web developer, but I am branching out for this project into the world of Windows Forms.

I am looking for any help, examples, samples to show me how to retrieve text from a RichEdit20a (or RichEdit20w) that exists in another application
running on the same box.

This is the only part of a large project that I am running that is new to
me, so I want to get this sorted as soon as possible. Then I can relax and
concentrate on actually writing the code.

Any help would be appreciated.

Thanks very much.

Matt. Davies
P.S. My apologies for a cross group post, but I wasn't sure which would be
the most appropriate group...inexperience again !

Hi Matt,

look here:
http://www.codeproject.com/dotnet/VB...owMessages.asp
http://www.codeproject.com/csharp/csthreadmsg.asp
http://www.codeproject.com/csharp/Si..._app_in_C_.asp
Greeting

Thomas
Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.