Search EggHeadCafe's Job Board
EggHeadCafe Silverlight WPF ASP.NET VB.NET C# Excel SQL Server SharePoint
search
MicrosoftArticlesForumsFAQs
C# .NET
VB.NET
Visual Studio .NET
ADO.NET
Xml / Xslt
VB 6.0
.NET CF
GDI+
LINQ
Deployment
Security
FoxPro
Silverlight / WPF
Entity Framework
RIA Services

WebArticlesForumsFAQs
JavaScript
ASP
ASP.NET
WCF

DatabasesArticlesForumsFAQs
SQL Server
Access
Oracle
MySQL
Other Databases

OfficeArticlesForumsFAQs
Excel
Word
Powerpoint
Outlook
Publisher
Money

Non-MicrosoftArticlesForumsFAQs
NHibernate
Perl
PHP
Ruby
Java
Linux / Unix
Apple
Open Source

Operating SysArticlesForumsFAQs
Windows 7
Windows Server
Windows Vista
Windows XP
Windows Update
MAC
Linux / UNIX

Server PlatformsArticlesForumsFAQs
BizTalk
Site Server
Exhange Server
IIS

Graphic DesignArticlesForumsFAQs
Macromedia Flash
Adobe PhotoShop
Expression Blend
Expression Design
Expression Web

OtherArticlesForumsFAQs
Lounge
Subversion / CVS
Ask Dr. Dotnetsky
Active Directory
Networking
Uninstall Virus
Job Openings
Product Reviews
Search Engines
Resumes

 

  View Other C# .NET Posts   Ask New Question  Ask New Question With Power Editor

Slide Show
Ramachandran T posted at Friday, November 06, 2009 6:27 AM

Hi,

This is extension of my previous question.

Assume there are 5 or more open winword (microsoft word documents.) are open and minized.

I need to write a program such that , it displaya the window title of all the open documents. User can select  1 or more documents. The selected documents must be brought to maxised state one by one in a fixed time period.

Any idea how to do this in c#

 

 

Reply    Reply Using Power Editor
  Rank Winnings Points
November 0 $0.00 0
October 0 $0.00 0
Re:
web mavin provided a rated reply to Ramachandran T on Saturday, November 07, 2009 11:15 PM

You could try making use of "System.Diagnostics" namespace to find the window title using a snip as this:-

Process[] processes = Process.GetProcessesByName("Winword");

 foreach(Process process in processes)
{
    Console.WriteLine(process.MainWindowTitle);
}

Further, to maximize this on timely basis as you want it, you could make use of WINDOWPLACEMENT structure, FindWindow, GetWindowPlacement and SetWindowPlacement windows methods. Refer a sample for this here.

Hope this helps.

Reply    Reply Using Power Editor
  Rank Winnings Points
November 8 $22.00 56
October 7 $38.00 131

Slide Show
mv ark provided a rated reply to Ramachandran T on Sunday, November 08, 2009 12:01 AM

This link contains code (scroll to the middle of the page) to list all running applications - http://www.neowin.net/forum/lofiversion/index.php/t369213.html

Adapt that code to filter out those related to Word & manipulate them
Reply    Reply Using Power Editor
M.V. 'Anil' Radhakrishna is a seasoned developer and a Microsoft MVP (ASP/ASP.NET). He blogs his little discoveries and Web development tips, tricks and trivia quite regularly. You can find some of his unusual code samples & snippets at his Code Gallery.
  Rank Winnings Points
November 6 $46.00 119
October 4 $66.00 225