Click here to Skip to main content
15,898,816 members
Home / Discussions / C#
   

C#

 
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




AnswerRe: capture output from windows program Pin
PIEBALDconsult16-Oct-08 16:58
mvePIEBALDconsult16-Oct-08 16:58 
GeneralRe: capture output from windows program Pin
Simon P Stevens16-Oct-08 22:06
Simon P Stevens16-Oct-08 22:06 
QuestionHow can I change these VB.net to C# codes? Pin
ATC16-Oct-08 10:05
ATC16-Oct-08 10:05 
AnswerRe: How can I change these VB.net to C# codes? Pin
Pete O'Hanlon16-Oct-08 10:09
mvePete O'Hanlon16-Oct-08 10:09 
GeneralRe: How can I change these VB.net to C# codes? Pin
ATC16-Oct-08 10:21
ATC16-Oct-08 10:21 
GeneralRe: How can I change these VB.net to C# codes? Pin
DaveyM6916-Oct-08 10:26
professionalDaveyM6916-Oct-08 10:26 
GeneralRe: How can I change these VB.net to C# codes? Pin
ATC16-Oct-08 10:38
ATC16-Oct-08 10:38 
GeneralRe: How can I change these VB.net to C# codes? Pin
Pete O'Hanlon16-Oct-08 21:57
mvePete O'Hanlon16-Oct-08 21:57 
AnswerRe: How can I change these VB.net to C# codes? Pin
Paul Conrad16-Oct-08 10:59
professionalPaul Conrad16-Oct-08 10:59 
AnswerRe: How can I change these VB.net to C# codes? Pin
Dave Doknjas16-Oct-08 13:21
Dave Doknjas16-Oct-08 13:21 
QuestionEnhancing UI layout using TableLayoutPanel Programmatically? Pin
Member 232448316-Oct-08 10:05
Member 232448316-Oct-08 10:05 
AnswerRe: Enhancing UI layout using TableLayoutPanel Programmatically? Pin
Dave Kreskowiak16-Oct-08 10:47
mveDave Kreskowiak16-Oct-08 10:47 
GeneralRe: Enhancing UI layout using TableLayoutPanel Programmatically? Pin
Member 232448316-Oct-08 11:35
Member 232448316-Oct-08 11:35 
GeneralRe: Enhancing UI layout using TableLayoutPanel Programmatically? Pin
Dave Kreskowiak16-Oct-08 12:04
mveDave Kreskowiak16-Oct-08 12:04 
GeneralRe: Enhancing UI layout using TableLayoutPanel Programmatically? Pin
Member 232448317-Oct-08 9:29
Member 232448317-Oct-08 9:29 
GeneralRe: Enhancing UI layout using TableLayoutPanel Programmatically? Pin
Dave Kreskowiak17-Oct-08 12:49
mveDave Kreskowiak17-Oct-08 12:49 
QuestionReference Question Pin
SRogers8816-Oct-08 7:49
SRogers8816-Oct-08 7:49 

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.