.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Running Multiple Instances of a VB.Net App EXE

Posted By:      Posted Date: October 05, 2010    Points: 0   Category :Windows Application


I want to allow the user to be able to run multiple instances of the program like Notepad. The way it is now is like once I run the executable I can not run another instance as long as the first instance is running.

How can I change this behavior at follwoing levels...

  1. At setup level
  2. After installing EXE.

Please suggest.


Please remember to click 'Mark as Answer' on the post that helped you.

View Complete Post

More Related Resource Links

Multiple Instances of User Control


I have a user control that I place on a page severl times.  When I make a selection on a ddl in one one control the SelectedIndexChanged event fires for all the control on the page for that ddl.  So I get duplication of an insert that I do.  Is there a way to make sure these events are isolated so this doesn't happen.


How to run multiple instances of workflow



I've created simple sequential workflow. It's only creates one task and is waiting in while loop until task is Approved. It works fine when I run only one instance of this workflow, but if I start another instance before first one is finished it gets stack and doesn't complete task an workflow stays in In Progress state forever.

Running multiple websites in Sharepoint 2007 with AX2009 Enterprise Portal


I need to setup two separate webshops with public access and different layouts using AX2009 Enterprise Portal.

However I am uncertain how to implement two completely different layouts/designs because the Sharepoint Templates are located inside the 12 hive and not seperate for each website.

Can anybody give me some hints on how to do this - and if so, which requirements I have to meet (VSS 3.0 or MOSS Standard / Enterprise) in order to do it.

I am speculating whether I need to setup two separate web-servers with each own Sharepoint installation (and Business Connector Proxy)

Thanks in advance


Running a single SQL update query on multiple foxpro databases

Hi, Env : SSIS 2008 My requirement is to run a update SQL statement on multiple foxpro databases. The fox database paths are available in a SQL server table.  I've created a for each loop control and assigned the database path to a variable named dbpath. Within the loop, I added an "execute sql task" control. Now what properties are to be set to get the requirement done. Appreciate any help. Regards. BH  Please click "Mark as Answer" if this resolves your problem or "Vote as Helpful" if you find it helpful. BH

multiple instances of report manager VS multiple users

Hello, I want multiple users to access same report or different reports through report manager for a report server. Will the scenario of opening multiple windows of report manager on same machine and execute reports from all windows simultaneously mean same as multiple users accessing the reports at the same time? If not, then how should I generate the scenario of multiple users? Regards.

How to use single windows service to host multiple WCF Services instances (Each instance of WCF is i

How to use single windows service to host multiple WCF Services. I have a mutiple instance of same WCF service in different folder, each instance has unique service name and port. WCFService has reference to Reg-Free COM Reference, i have Native.WCFService.manifest in each folder. Ex: WCFService1 is in "C:\WCFService01\WCFService.dll, Native.OCWCFService.manifest, OCWCFService.dll.config WCFService2 is in "C:\WCFService02\WCFService.dll, Native.OCWCFService.manifest, OCWCFService.dll.config Now i need host above services from single Windows Service. I am trying to create AppDomain for each above WCFService Instance from Windows Service and then host. Its working if i register COM dll in the server using regsvr32, but when i un register COM dll, i am getting unable to load COM component .... This looks like AppDomain is not loading COM DLL and Manifest files. Its looks strange but we need it in this way because we have production and test environment in the same server. Everything works fine if create a seperate Windows Service for each WCFService Instance, but my manager wants single Windows Service :). Any help whould be really appreciated.  ravi kumar reddy

Rebooting one Instance on a SQL 2008 Server with multiple instances installed

Hello, Hoping someone can answer the following questions ... If I have SQL Server 2008 with multiple Named Instances configured on it, can I reboot one Named Instance without rebooting any of the other Named Instances, or without having to reboot the entire server ? For example, if I have an application that needs to be re-booted and it requires the Database to be re-booted. Regards, JD

Multiple Instances Same User Control

I have an ASP.NET page inside of an ASP.NET Master page, and inside the page I have two instances of the same web user control. I have given them different IDs, but when I click a button on the first user control it causes the second user control to do the expected activity and the first one does nothing. Is there something I need to do to make sure that the controls don't get confused? P.S. The expected activity is that when the button is clicked one panel object is disabled and another is shown. When the button is clicked on custom control 1 the panel on custom control 2 is disabled and it's next panel is shown and custom control 1 does nothing. Thanks for the help. 

Installing multiple instances of SQL Server R2 creates permissions issues - first instance won't st

After installing two named instances of SQL Server 2008 R2 DataCenter edition (R2D2 and C3P0) I found the first instance would no longer start.  The errorlog showed the reason to be an invalid path. 2010-09-14 18:15:39.12 Server      Error: 17113, Severity: 16, State: 1. 2010-09-14 18:15:39.12 Server      Error 3(The system cannot find the path specified.) occurred while opening file 'C:\MSSQL\SQLDAT\MSSQL10_50.R2D2\MSSQL\DATA\master.mdf' to obtain configuration information at startup. An invalid startup option might have caused the error. Verify your startup options, and correct or remove them if necessary. Finding the files in the proper location I check the ACLs and found the Local Group created for the second instance on the ACL for the first instance.  That is to say for instance R2D2 I found MSP-JANHONJ7\SQLServerMSSQLUser$MSP-janhonj7$C3P0 instead of the MSP-JANHONJ7\SQLServerMSSQLUser$MSP-janhonj7$R2D2 that was originally there. C:\MSSQL\SQLDAT\MSSQL10_50.R2D2\MSSQL\DATA>icacls master.mdf master.mdf NT AUTHORITY\SYSTEM:(F)            BUILTIN\Administrators:(F)            MSP-JANHONJ7\SQLServerMSSQLUser$MSP-janhonj7$C3P0:(F) It seems that creating the second instance causes this problem.  I have been u

Multiple Sql instances in a cluster



I have a need to add a second Sql instance to an existing cluster. However I read in this article http://www.sql-server-performance.com/articles/clustering/clustering_best_practices_p1.aspx

that this is not recommended. Does anyone know why this is or what problems I may encounter?

Its is running Sql 2005 on a 64 bit windows Server 2003.

integation services and multiple instances - no backdoor?


When I try to deploy an SSIS package to the second instance on my server, I get a nasty message to use the default instance because the service does not support multiple instances.

So, ... just because the "service" won't support multiple instances, does that mean what it sounds like it means, that there is NO WAY for us to put a second (test) instance on the same server and have separate packages in the respective msdb's on each instance?

I mean, that seems to be what it's saying, but here we are, all eager to do just that ... so if there was a way to make it work without the service, we might try it.  But maybe dtexec won't even be able to fetch the package from msdb?  I don't want to go so far as to export it manually from the (named instance) msdb to a file just to run it ...

since a cheap workaround is simply to put the dtsx files on a file folder instead of msdb anyway.

(in fact, probably would have been my first choice, if anyone had asked me!)





Running multiple versions of the same workflow

I wanted to know how I can have have multiple versions of the same workflow running at the same time.  Currently the issue I have is if there is a workflow (version 1.1) which in an IDLE state and then I change the workflow (version 1.2).  Then the IDLE workflow is not able to run. 

Multiple instances - max server memory setting?

Please let me know any practical guidelines of max server memory setting if you have multiple instances on the same box. Brand new server and not much of historical data available. What are some safe guidelines and tweaking instructions?

How to get the number of running application instances?


I need a query that provides the current number of running instances of a client application.
The application is developed on VS2008 (.NET3.5, VB.NET) and accesses an Oracle 10g database via System.Data.OracleClient Here the view SYS.V_$SESSION yields all I need to get the current number of running applications (which is the same as the number of users logged in on each application instance).

I extended the application in order to access the database alternatively hosted on Sql Server 2008 R2 using System.Data.SqlClient The view sys.dm_exec_sessions seems to be an equivalent to Oracles SYS.V_$SESSION but actually it is not!:

  1. Instead of the application name, sys.dm_exec_sessions.program_name yields ".Net SqlClient Data Provider" which is useless information.
  2. After a while all session information is gone although the application is still running.

How do I add multiple instances of the wiki editor control to a page?


(Sharepoint 2007)

I have a SharePoint wiki site and the home page has become a bit cluttered. Using SharePoint Designer 2007 I have figured out how to edit the home page of the wiki site and I have created a row of tabs with associated content pieces. It's the usual thing, click on a tab, hide one div, show another. What I would like to do is to be able to edit each div's content as a separate wiki page. Is this possible? I currently have the SharePoint:FormField and SharePoint:ListFieldIterator tags commented out.

Thank you for any help you can give.

To create Multiple Instances in windows application?


we are running multiple instances of application.we want to have  connection string seperate for each instance as long as instance is running?

How to achieve?

application created in .net 3.5

Please Help.

How to run application made in vb.net of multiple instances of excel add ins


My project is based on Excel Addins. and when i run my application then open excel and working my project running fine but when i am trying to open multiple excel then this condition my project not worked except single excel when opened. so i would like to work on multiple instances of excel running fine.

Plz help me out if u have any idea regarding this.

Thanks in advance,


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend