C# .NET - Slide Show

Asked By Ramachandran T
06-Nov-09 06: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#

 

 

  web mavin replied to Ramachandran T
07-Nov-09 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 http://www.codeproject.com/KB/miscctrl/WindowAction.aspx.

Hope this helps.

Slide Show  Slide Show

08-Nov-09 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
Create New Account
help
other are not processing. and am getting below one in log file as error cause: Microsoft Windows Installer 4.5 Update (x86) - Windows XP: [2] CGenericComponent::Install() expects the setup file for Microsoft Windows Installer 4.5 Update (x86) - Windows XP, but the file is not available. [08 ISetupManager::InternalInstallManager() with HRESULT -2147467259. [08 / 10 / 11, 14:26:00] VS70pgui: [2] DepCheck indicates Microsoft Windows Installer 4.5 Update (x86) - Windows XP is not installed. [08 / 10 / 11, 14:26:00] VS70pgui: [2] DepCheck indicates Microsoft Visual F# 2.0 Runtime was not attempted to be installed. [08 / 10 / 11, 14 26:00] VS70pgui: [2] DepCheck indicates Microsoft Visual Studio Macro Tools was not attempted to be installed. [08 / 10 / 11, 14:26 not attempted to be installed. [08 / 10 / 11, 14:26:01] VS70pgui: [2] DepCheck indicates Microsoft Visual Studio 2010 Professional - ENU was not attempted to be installed. [08 / 10 / 11, 14:26:01] VS70pgui: [2] DepCheck indicates Microsoft Web Deployment Tool (x86) was not attempted to be installed. [08 / 10 / 11, 14:26 01] VS70pgui: [2] DepCheck indicates Microsoft ASP.NET MVC 2 - Visual Studio 2010 Tools was not attempted to be installed. [08
cache object? (A) What are dependencies in cache and types of dependencies? (A)Can you show a simple code showing file dependency in cache? (A) What is Cache Callback in Cache client side? (B)How to disable client side script in validators? (A)How can I show the entire validation error message in a message box on the client side? (B)You pattern in .NET? (B)What is three-tier architecture? (I)Have you ever worked with Microsoft Application Blocks, if yes then which? (A)What is Service Oriented architecture? (I)What are object? (B) What are the various objects in Dataset? (B) How can we connect to Microsoft Access, FoxPro, and Oracle etc? (B) How do we connect to SQL SERVER, which namespace XAML? B) How can we access XAML objects in behind code? (A) What kind of documents are supported in WPF? Chapter 17: Windows workflow foundation (Vista series) (B) What is Windows use to connect to a data source via the Tabular Data Stream (TDS) interface of Microsoft SQL Server (only). This can generally provide better performance as it removes some of the XML This Contains the basic objects required to create, read, store, write, and manipulate XML documents according to W3C recommendations. Can you give a overview of ADO.NET architecture ? The most the stored procedures we are using the parameter object of the command object. In such question interviewer expects two simple answers one is that we use command object to execute stored
there any library funtion for to use that? Thanks R. Eswaran. Use Object Libary of Word 2003 class TestHarness { / / / < summary > / / / testing Word Class / / / < / summary > [STAThread] static void Main( string [] args) { SpellCheck word = new SpellCheck(); bool status = false ; string s = " youes" ; Console.WriteLine( " Checking for word : " + s ); / / check to see if the word is not correct / / return the bool (true | false) status = word.CheckSpelling(s); if (status = = false ) { Console.WriteLine( " This word is misspelled : " + s); Console.WriteLine( " Here are some suggestions" ); Console.WriteLine( " - -- -- -- -- -- -- -- -- -- -- -- --" ); foreach
Fill(ds1); dg1.DataSource = ds1; dg1.DataBind(); Answer2 Yes Dim cn as new OleDbConnection ( “Provider = Microsoft.Jet.OLEDB.4.0;”+ _ “Data Source = C: \ Documents and Settings \ User \ My Documents \ Visual Studio Projects \ 1209 \ db1.mdb”+ _ “User ID = Admin;”+ _ “Password = ;”); Dim cmd As in each page of your application, and and we do not intend to use the Microsoft-provided calendar control, how do you develop it? Do you copy and paste the code between Java and.NET? Comparing Java and .NET is comparing apples and oranges. Either the question needs to be to compare Java and C# or J2EE and .NET. What are the is SYSTEM.WEB.dll Is there any inbuilt paging (for example shoping cart, which will show next 10 records without refreshing) in ASP? How will you do pating? Use DataGrid control to find the SQL server version from Query Analyser Answer1 To determine which version of Microsoft SQL Server 2005 is running, connect to SQL Server 2005 by using SQL Server Management Standard Edition Answer2 One can also use SELECT @@Version where the result would look like Microsoft SQL Server 2005 - 9.00.1399.06 (Intel X86) Oct 14 2005 00:33:37