C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » .NET »

Should create only one WINWORD.EXE when i open more than one applications


Posted Date: 22 Sep 2008      Posted By: vidhyashri      Member Level: Silver     Points: 1   Responses: 4



Hi friends,

In my application, i had written a code to open a word application. When i open nearly 10 application. it creates 10 WINWORD.EXE. If i close the application all WINWORD.EXE closes from the task manager. If i did not close the application it creates more. I need to create only one WINWORD.EXE when i open more than one application.

I need an idea about it.



Thanks in Advance.





Responses

Author: Elayaraja.K    22 Sep 2008Member Level: SilverRating: 2 out of 52 out of 5     Points: 4

only way you should kill one by one through task manager.

If you want to kill more in taks manager.just write the following code in .net

Dim parr As Process() = Process.GetProcessesByName("WINWORD.EXE")
If parr.Length > 1 Then
For i As Integer = 0 To parr.Length - 1
parr(i).Kill()
Next
end if



Author: vidhyashri    22 Sep 2008Member Level: SilverRating: 2 out of 52 out of 5     Points: 3

Elayaraja,

Thanks for your reply.
I need not to kill the process. If i open 5 applications in my system,WINWORD.EXE should be only one in task manager.



Author: D.Jeya kumar(JK)    22 Sep 2008Member Level: DiamondRating: 2 out of 52 out of 5     Points: 3

Hi,


Open one application instance and from the exe we can open many application.


check the below site

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3780403&SiteID=1

Regards
JK



Author: vidhyashri    23 Sep 2008Member Level: SilverRating: 2 out of 52 out of 5     Points: 1

jk,
I checked the url that u send, but still it creates 5 WINWORD.EXE when i open 5 applications.



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : Executing C# coding by retrieving from Table
Previous : Excel Very urgent help me...
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use