Click here to Skip to main content
15,907,687 members
Home / Discussions / C#
   

C#

 
GeneralRe: How do I fix this error? Pin
Ashfield17-Oct-08 2:10
Ashfield17-Oct-08 2:10 
GeneralRe: How do I fix this error? [modified] Pin
Angelinna17-Oct-08 2:48
Angelinna17-Oct-08 2:48 
GeneralRe: How do I fix this error?(see part of code) Pin
Simon P Stevens17-Oct-08 3:16
Simon P Stevens17-Oct-08 3:16 
GeneralRe: How do I fix this error?(see part of code) Pin
Angelinna17-Oct-08 3:36
Angelinna17-Oct-08 3:36 
GeneralRe: How do I fix this error?(see part of code) Pin
Simon P Stevens17-Oct-08 5:34
Simon P Stevens17-Oct-08 5:34 
GeneralRe: How do I fix this error?(see part of code) Pin
Paul Conrad21-Oct-08 6:03
professionalPaul Conrad21-Oct-08 6:03 
AnswerRe: How do I fix this error? Pin
Hesham Yassin19-Oct-08 1:43
Hesham Yassin19-Oct-08 1:43 
QuestionC# Excel Chart Series Option (Change Second Plot value) Pin
fjlv200516-Oct-08 16:56
fjlv200516-Oct-08 16:56 
AnswerRe: C# Excel Chart Series Option (Change Second Plot value) Pin
fjlv200516-Oct-08 17:29
fjlv200516-Oct-08 17:29 
QuestionSend MMS in C# Pin
nageshwaran16-Oct-08 16:37
nageshwaran16-Oct-08 16:37 
AnswerRe: Send MMS in C# Pin
Simon P Stevens16-Oct-08 22:09
Simon P Stevens16-Oct-08 22:09 
QuestionCrystal Report - treeview Pin
nelsonpaixao16-Oct-08 14:22
nelsonpaixao16-Oct-08 14:22 
QuestionHow to Clear WebBrowser control 'Cache'? Pin
Trapper-Hell16-Oct-08 12:57
Trapper-Hell16-Oct-08 12:57 
AnswerRe: How to Clear WebBrowser control 'Cache'? Pin
aj.esler17-Oct-08 3:11
aj.esler17-Oct-08 3:11 
QuestionRe: How to Clear WebBrowser control 'Cache'? Pin
dialaya13-Oct-09 4:06
dialaya13-Oct-09 4:06 
QuestionXmlReaderSettings does not resolve an xs:import with http://... location Pin
giangilpredo16-Oct-08 11:33
giangilpredo16-Oct-08 11:33 
QuestionUrgent help req.How to close an Oracle connection when network gets disconnected Pin
ravindradonkada16-Oct-08 11:10
ravindradonkada16-Oct-08 11:10 
AnswerRe: Urgent help req.How to close an Oracle connection when network gets disconnected Pin
Richard Wray18-Feb-10 14:46
Richard Wray18-Feb-10 14:46 
Question.NET Windows Service Installer Pin
TigerNinja_16-Oct-08 10:46
TigerNinja_16-Oct-08 10:46 
AnswerRe: .NET Windows Service Installer Pin
Dave Kreskowiak16-Oct-08 10:56
mveDave Kreskowiak16-Oct-08 10:56 
GeneralRe: .NET Windows Service Installer Pin
TigerNinja_17-Oct-08 3:09
TigerNinja_17-Oct-08 3:09 
JokeRe: .NET Windows Service Installer Pin
PIEBALDconsult16-Oct-08 16:57
mvePIEBALDconsult16-Oct-08 16:57 
GeneralRe: .NET Windows Service Installer Pin
TigerNinja_17-Oct-08 3:11
TigerNinja_17-Oct-08 3:11 
Questioncapture output from windows program Pin
Axell16-Oct-08 10:40
Axell16-Oct-08 10:40 
AnswerRe: capture output from windows program Pin
Dave Kreskowiak16-Oct-08 10:52
mveDave Kreskowiak16-Oct-08 10:52 
Axell wrote:
How do I do the same with a windows application?


You can't do it the same way at all. The technologies and techniques are so different that the article you read is completely useless to you.

Well, VERY SIMPLISTICALLY, you have to get the window handle of the target window you want and then send that window a WM_GETTEXT message, then get the string pointed to by the returned pointer. But! There's nothing that say that every textbox or control has to respond to the WM_GETTEXT message, so there's no way to guarantee this is going to work at all for every control!

WARNING! This technique requires an in-depth knowledge of how Window's windowing system works. If you don't know this, you're going to have an extremely difficult time pulling this off.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.