form.Text throws exception if window has no title
Posted: Mon Feb 04, 2008 7:12 pm
Hi,
The following code throws an exception if the forms title is empty:
I use the version V1.3.
Peter
The following code throws an exception if the forms title is empty:
Code: Select all
foreach (Form form in Application.Forms)
{
try
{
if (form.Text.Contains("Microsoft Word"))
{
// do something
}
}
catch (CommandFailedException)
{ }
}
Peter