Check If Multiple Instances Of An Application Are Running?

Aug 15, 2011

I made a simple "restarter" app... However, I need to close multiple instances of an application. For example, if I have three windows of paint, or three windows of Word open, how do I check if it is still open before I open a new instance?

[Code]...

View 1 Replies


ADVERTISEMENT

.net - Store Application And User Settings Of An Application Running With Multiple Instances?

Jul 12, 2011

Which is the best way to store application and user settings of an application running with multiple instances?My problem is that using the vb's "Application Settings" one instance would overwrite the other one.I want to identify each instance with a number passed via command line argument. I could use this number to identify the appropriate settings of the running instance, but I see in a local INI o XML file a better way to handle that.

View 1 Replies

Checking For Multiple Instances Of Application?

Aug 30, 2010

How can I check for multiple instances of my visual basic application? When the user runs the application, I want to know how many instances are already open.

View 2 Replies

Communicating Between Multiple Instances Of Application?

Mar 9, 2009

I have an application which the user can open multiple instances on the same machine. However, a section of the app would have sync problems if more than 1 instance has control over it. This is where I thought of transferring control, or sharing, between them. What should I be looking into?

They would have to be able to identify which one of them has control and to send text information over. I thought IPC or Named Pipes could do the trick, but I'm unfamiliar with them and examples seem to indicate only a single server will work. Here, I have multiple instances of the same app and every one of them needs to be able to listen for that request for control.

View 25 Replies

WPF + Communicate Between Multiple Application Instances?

Mar 20, 2010

I need to grab information between two instances of my WPF app (the contents of a public collection, to be precise).

View 2 Replies

Single Instance Application Won't Load Multiple Instances

Dec 13, 2008

I have set the "Make single instance application" check box.And when my application version is 1.0.0.0 for example, it is OK and won't load multiple instances.But when I create a new version, for example 1.0.0.1, then I can run 2 instances of my application, when the 1st instance is 1.0.0.0 and the second instance is 1.0.0.1.What should I do to prevent this?

View 2 Replies

.NET Check If Another Application Is Running?

May 11, 2009

I have an application that provides core services for a series of other applications.When another of these applications is started, I want to check that the service application is running and if not shutdown.What is the best method to check for the existence of the other app? I'm thinking that I should be using a global mutex in the services app and checking for it's existence in the other apps. Is this the correct way to proceed?

View 4 Replies

Check If Application Is Already Running?

Jan 21, 2009

I want to be able to test if an Excel application is already running on the computer. If it is, I want to use it to create and save a new file. Excel will remain open.If no Excel application is running, I will open Excel, create and save a new file, and then close Excel.

View 8 Replies

Check If An Application Is Running And Kill It?

Jul 25, 2010

How can I check if an application is running, and then kill it?I REALLY need it urgently because some random antivirus program attacked me, and it doesn't let me do ANYTHING! So I am planning to put the program on startup and kill it when it starts running.

View 5 Replies

Check If Current Application Is Running?

Dec 21, 2009

I have created a control and have some code in constructor. This code should only run when application is running, but it also runs when i load form. Can I have some check if application is running or not?Faisal Saleem (Software Engineer)

View 6 Replies

VS 2008 Check If Application Is Already Running?

Jul 30, 2011

How to check if my application is already running? So I can prevent it from starting twice.For example:My application is already running, the user is trying to run it again, a MsgBox shows and says that this application is already running.

View 2 Replies

Check Whether Application Is Running Locally Or Remotely?

Apr 21, 2010

My desktop application is developed in VB.Net and can be run through two types of users, one who install it on their local machine and execute locally.

Second type of users will run the application remotely from the server.i.e. Application will install on the server and user will execute that application from client side. Server can be a Citrix Meta Frame or any server accessed through Remote Desktop Connection. I want to maintain single exe for both types of users.

Is there any mechanism/way through which I can come to know programmatically whether application is running locally or remotely?

View 8 Replies

Check Programmatically Whether Application Is Running Locally Or Remotely?

Apr 21, 2010

My desktop application is developed in VB.Net and can be run through two types of users, one who install it on their local machine and execute locally.

Second type of users will run the application remotely from the server.i.e. Application will install on the server and user will execute that application from client side. Server can be a Citrix Meta Frame or any server accessed through Remote Desktop Connection.

I want to maintain single exe for both types of users.

Question:

Is there any mechanism/way through which I can come to know programmatically whether application is running locally or remotely?

View 13 Replies

Application Which Is Running Off Multiple User Desktops?

Dec 4, 2009

I have an application which is running off multiple user desktops (app is in vb.net/vs 2008). The application pulls its data from an SQL 2005 Server (which holds all of the main data tables as well as a bunch of reference tables). So for different projects, the application pulls in data from the main tables... ie, Project ID, Project Cost...and so on.. The data is contained by ID's and when the data is imported into the application, the look up tables are used to convert the ID's to names.. so instead of project ID, the user would see the actual project name. Before the data is written back to the db, it is converted back to ID's ... anyways, there are a bunch of these look up tables, (for vendors, different expenditure codes, projects, sub projects.

[Code]...

View 3 Replies

Office Automation :: Outlook - Application Running Multiple Threads

Apr 15, 2009

I have an application, running multiple threads, and in many of these threads, Outlook is being called, some mails read, attachments downloaded, and then the outlook instance closed. But it is possible that there are a number of threads trying to do the same thing at the same time. There is of course a lock at the beginning and end of the process, so that no two threads try to access the outlook application at the same time.

"Sometimes" i get an error message : Creating an instance of the COM component with CLSID {0006F03A-0000-0000-C000-000000000046} from the IClassFactory failed due to the following error: 80010108

View 3 Replies

Reflection Instances To Get A List Of Applications Running

Jun 18, 2009

I have created a simple windows forms application. I would like to be able to connect to that running application and view certain properties from a seperate windows form application. In VB6 I would have run the first application and then called GetObject to connect to the instance. Does anybody know how I could do this in .Net. I'm guessing I'd have to use reflection to get a list of applications running and then somehow connect to them but I'm not sure how to do this?

View 5 Replies

Multiple Runtime Exceptions When Clicking Run From Task Scheduler / Works Fine Running Application From Project Folder

Jun 3, 2011

So I wrote a VB.net project in Visual studio.I have a scheduled task that is set to run the program every morning at 10AM. If I use windows explorer and double click the application, it runs fine.If I open task scheduler, open the task properties, and browse to the application, then choose run, the program fails, due to Runtime exceptions.I know I have the path entered correctly, since I can debug the instance when it crashes from the task scheduler. VS2010 pulls up my source code.The exception is System.IO.FileNotFoundException, remember, it works fine when I double click the app. If attach a debugger to the process after it is executed from the task scheduler, I can then restart the debugger, and Voila!, The application runs fine.

View 1 Replies

Pre-check A String For A Certain Number Of Instances Of A Substring?

Oct 19, 2010

Is there something I am missing to pre-check a string for a certain number of instances of a substring? Example.

"I am a test string, I will be searching this string later. I will be checking for every instance of the letter "i" and return the number of instances of that letter."

If I wanted to return an int for how many times i occurs in that string.

View 6 Replies

Connecting To Multiple SQL Instances?

Jan 3, 2011

Any best method of managing multiple SQL connections .net (VB). My application connects to four instances of SQL Server (2000, 2005, 2008, 2008R2) restoring databases, modifying data and taking backups. In addition to managing databases the app also has its own DB (on the 2008 instance) for storing various data. I'm using two methods to connect to the instances, SMO (For backups, restoring and retrieving information about the databases, size etc) and SqlClient for querying each database for many tasks such as updating fields and executing sql scripts.I have multiple forms for performing various tasks so there are many places I'm opening / closing connections.

Would it be best to maintain a persistent global connection to each instance from the application? (Two in total, one for SMO and the other for SqlClient) or open close a connection for each task I'm performing?) I'm not using LINK as I need the tasks to be as fast as possible. The connection string will differ on each connection (Based on Instance and Database being connected to) how would I manage this? A string in the config file for the applications database would make sense, as that would be static but the databases being worked on will vary with each connection. Currently I'm creating a connection for each instance within the main form:

Dim 2000Connection = New SqlConnection("Data Source=" & SQLServerName & _
"SQL2000;Initial Catalog=Master;User ID=sa;Password=P@ssw0rd;Pooling=True;")
Dim 2005Connection = New SqlConnection("Data Source=" & SQLServerName & _
"SQL2005;Initial Catalog=Master;User ID=sa;Password=P@ssw0rd;Pooling=True;")
Dim 2008Connection = New SqlConnection("Data Source=" & SQLServerName & _
"SQL2008;Initial Catalog=Master;User ID=sa;Password=P@ssw0rd;Pooling=True;")
[Code] .....

View 1 Replies

Multiple Instances Of A Form?

Sep 13, 2010

If I create a console application for example with a class named "Person" I can create an object variable with a ceratin name only once. For example:

Module
Module1
Sub

[Code]....

View 1 Replies

Multiple Instances Of Class?

Mar 29, 2010

I have the following problem. (VB.Net 2008)I have created a class (myFirstClass). In this class there are a lot of calculations being made wich gets fired by events in that same class.Now i want that same class to be able to fire more instances of itself. However i noticed that each time i fire an event from a Sub the program waits till the event is finished before going to the next line of code. This is a problem since i want the event wich fires a new instance of the class to fire it and forget about it.

View 7 Replies

Multiple Instances Of The Same Form?

Mar 3, 2010

I have two forms in my application. Form 1 is a listview that is populated with unique Customer IDs. When the user double click the listview on the particular Customer ID then it loads Form2. Form2 has many listviews within it such as a listview for the Customer telephone, another listview for their addresses etc and all the data presented in Form2 listviews are based on the Customer ID that the user clicked in Form1.

So here is my question...I want the user to be able to open Form2 with that particular details of the customer but also to go back to Form1 and double click another Customer ID and opens Form2 again (such as replicating Form2) with the other Customer details.So the moral of the story is i want the user to be able to have many instances of Form2 open each time they wish to view a different Customer ID without having to close Form2 down every time.

View 3 Replies

VS 2008 X86, X64, PID, Multiple Instances?

Feb 6, 2010

My ultimate goal is to get a list of PIDs and have a user select 1 of them.For example: the process image name is program.exe. The application name varies for each instance the program.exe is run, and therefor each application name has its own PID associated with it. By application name I mean the Task name under the Applications tab of Windows Task Manager. Another issue I face is that some systems run x64, so the name is no longer program.exe but program.exe*32

So my issue is, how do I search for program.exe, or on x64 platforms program.exe*32, and if there are multiple instances of program.exe/program.exe*32 running, how can I get a list of PIDs for each and associated them with the application name as the Task name under the Applications tab of Windows Task Manager.that might sound a bit confusing! So if it is, please let me know and I will try to explain more. Any reference guides or example code would be greatly appriciated as I have only used the "System.Diagnostics" but once.

View 2 Replies

Adding Multiple Instances Of Same Control

Jan 14, 2011

I have a control which consists of a couple of labels and a couple of buttons side by side.I want to add multiple instances of this control to a panel.The problem I have is with positioning/formatting.Whenever I add the control it just gets added on top of the previous one.Should I be using something other then a panel? Are there any tips ot tricks I should be aware of ?

View 3 Replies

Creating Multiple Instances Of A Form?

Aug 12, 2009

I have a form (form1) and I havea button on form1 (button1) that will start a second form (form2).How can I make it create multiple instances of form2 when button1 is clicked?i tried a process module that the studio comes as standard but it does not allow me to start multiple instances...how can i do this?

View 14 Replies

Hold Multiple Instances(10) Of Alarms?

Jul 20, 2010

I have created an alarm program but am having an issue creating multiple alarms. Here is what I have so far. I have created an array to hold multiple instances(10) of alarms that I want to run concurrently.

Code:
Dim SetAlarms(7, 9) As String
Public Shared x As Integer = AlarmNumb
'X=alarmnumb

[Code]....

What I cannot figure out is how to get the program to read the array and recognize each row as a separate alarm to process. This means it must read the array, know which variables to populate with what information and cycle thru the list.

View 5 Replies

Loading Multiple Instances Of One .dll In .Net 2010?

Sep 22, 2010

I'm working on a program that uses a COM Object exposed by a .dll. The .dll has a known bug, though, where it acts very erratically when more than one instance of the object is created under one .dll, resulting in crashes or corrupted data a large part of the time. I'm curious if there is some way I can load another instance of the .dll itself, then create another instance of the object without having to need a new process for every instance.

View 9 Replies

Multiple Instances Of A Custom Class?

Feb 15, 2009

I have a sub that runs on a button click which I want to create a new instance of a custom class and add it to a list of already created instances of this class. I want the result to be a List Of collection of all of my class instances.

My problem is that each time I run the sub, it simply 'overwrites' the first instance of the class and adds a copy of it to the list instead of writing a new instance. My code is along these lines

dim objFixture as new clsFixture
For n As Integer = 1 To intNoOfChannels
objFixture.SetChannelAddress(n, intCurrentChannelTotal + 1)
intCurrentChannelTotal += 1
next
lstFixtures.Add(objFixture)

View 7 Replies

Multiple Instances Of DCOM Singleton

May 19, 2011

Testing a configuration of a Windows 7 workstation acting as a "server" and a Windows XP workstation acting as a "client" (also fails in the same way using a Windows 7 client workstation).

[Code]...

View 8 Replies

Multiple Instances Of Forms, Same Record?

Jun 22, 2009

Good Day. Kinda banging my head against the wall on this one. I have a Mdi application with the start form(mdiparent) and form1(mdichild). On the start form, there is a textbox and a button. Heres how I want it to work:

1. value is entered into textbox and button is clicked

2. if form1 is open with that value, Bring it to the front if not, create a new instance of form1

If Not IsNothing(frmForm) Then 'If it is something
If Not frmForm.IsDisposed Then 'it's not disposed
'loop through the open form1s and compare the form1s property to the startform textbox
'if its the same, bring the form1 to the front

[code]....

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved