Questions tagged [single-instance]

Make sure that only one instance of the application is running on the system.

250 questions
-1
votes
1 answer

Autofac Dependecy Injection Azure function SingleInstance

I followed this links. https://dontcodetired.com/blog/post/Azure-Functions-Dependency-Injection-with-Autofac Autofac Binding at Runtime It worked fine. I want to know when azure function scales, object injected into azure function will be shared by…
-1
votes
2 answers

Show just one message box

I'm trying to show just one message box using the gameover bool to control the situation but it doesn't work, its showing infinite message boxes. bool player2turn = false; bool gameover = false; private void timer1_Tick(object sender, EventArgs…
Newbie404
  • 523
  • 4
  • 7
-1
votes
1 answer

If another instance is running, [set focus] and open file on the 'old' instance

How can i check if another instance is running ? Also if it is running how can I force my already opened instance to open a file ? Also if it is possible can I force it to get focus? ( I need this seperate)
Mitcoc
  • 31
  • 1
  • 9
-1
votes
1 answer

pushViewController for same instance - only for animation purpose

I am having single table view in a view controller. That table view lists the countries first. When I click on a country(row), it has to push the same view controller's view with cities under that country. I need to see the slide animation, which we…
raksja
  • 3,969
  • 5
  • 38
  • 44
-1
votes
4 answers

Start application just one time C#

I just make an application in C#, but something I don't like. I want to make the application running just one time. Now, if my application is running, when I run the application again, will start another application. I want to make that the…
AnDr3yy
  • 239
  • 2
  • 5
  • 16
-2
votes
1 answer

How to generalize code to allow only one instance per Window in WPF application

Note: Because my question got flagged as duplicate, here some more details: Is there a way to encapsulate the code, without writing it x-times for every class? (It's not about the MainWindow! It's about multiple window classes!) My WPF-Application…
wulf11
  • 79
  • 8
-2
votes
5 answers

Creating many objects using composition when the containing class is a singleton pattern

java version 1.7.0_65 I have a singleton design pattern class. That will always return the same instance that is initially created. However, the problem I have is this class needs to create many other objects from another class. I have used…
ant2009
  • 27,094
  • 154
  • 411
  • 609
-2
votes
2 answers

How to Run program one Process and some name only?

i create some project but when start App. How to Run this App one Process only and name much "test.exe" name only? when Lunch APP ? C# 2.0
monkey_boys
  • 7,108
  • 22
  • 58
  • 82
-2
votes
1 answer

Multiple Java Programs using single instance of a class

i am programming a virtual network. I have a central Client class which implements my whole network and allows to send/receive data to/from an specific other Client in the network. I now wan't to use a single instance of the Client class for ALL…
th3falc0n
  • 1,389
  • 1
  • 12
  • 33
-3
votes
1 answer

How to Run specific part of codes in Program Main just once in C#?

I registered my application on ".mp3" Files. My App is a Single Instance Application. Goal: when user open a mp3 file if myApp isn't running Is start running and show the selected files count in explorer else show the app window and show the…
ACE
  • 379
  • 3
  • 12
1 2 3
16
17