How do I programatically get the text from a popup dialog box?

Thanks.

Re: Get Text from System Dialog Box by Pete

Pete
Tue Jan 25 10:28:50 CST 2005

What text? The text in the Window title? The text in a text box in the
dialog? The text of a label in the dialog? The text of a message in a
messagebox?

Your question is very vague. Can you be more specific?


"NightHog" <NightHog@msn.com> wrote in message
news:uCGFxnuAFHA.3528@tk2msftngp13.phx.gbl...
> How do I programatically get the text from a popup dialog box?
>
> Thanks.
>
>



Re: Get Text from System Dialog Box by NightHog

NightHog
Tue Jan 25 10:43:12 CST 2005

The text of a message in a messagebox.

"Pete Davis" <pdavis68@NOSPAM.hotmail.com> wrote in message
news:SsudnSJiM7tf7mvcRVn-oQ@giganews.com...
> What text? The text in the Window title? The text in a text box in the
> dialog? The text of a label in the dialog? The text of a message in a
> messagebox?
>
> Your question is very vague. Can you be more specific?
>
>
> "NightHog" <NightHog@msn.com> wrote in message
> news:uCGFxnuAFHA.3528@tk2msftngp13.phx.gbl...
>> How do I programatically get the text from a popup dialog box?
>>
>> Thanks.
>>
>>
>
>



Re: Get Text from System Dialog Box by Herfried

Herfried
Tue Jan 25 12:22:26 CST 2005

"NightHog" <NightHog@msn.com> schrieb:
> The text of a message in a messagebox.

Is the messagebox shown by another program?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Re: Get Text from System Dialog Box by NightHog

NightHog
Tue Jan 25 19:01:03 CST 2005

yes.

"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:ODJoQrwAFHA.2880@TK2MSFTNGP14.phx.gbl...
> "NightHog" <NightHog@msn.com> schrieb:
>> The text of a message in a messagebox.
>
> Is the messagebox shown by another program?
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>



Re: Get Text from System Dialog Box by Herfried

Herfried
Wed Jan 26 03:26:13 CST 2005

"NightHog" <NightHog@msn.com> schrieb:
>> Is the messagebox shown by another program?
>
> yes.

If you have the messagebox's window handle, you can get the text by
p/invoking 'GetWindowText'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


Re: Get Text from System Dialog Box by Hemang

Hemang
Wed Jan 26 07:22:09 CST 2005

How can we get the window handle of any window ? Is there a way to find out?

Will that application always use that handle on every computer ?

What if that application is MDI ? can we access the sub windows in that
application as well ?


"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:e1ZYSk4AFHA.2540@TK2MSFTNGP09.phx.gbl...
> "NightHog" <NightHog@msn.com> schrieb:
>>> Is the messagebox shown by another program?
>>
>> yes.
>
> If you have the messagebox's window handle, you can get the text by
> p/invoking 'GetWindowText'.
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>