473,387 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Only one instance is load

Hi all,
I would like to know the way or method to make my win appl. to have only
one instance on a client machine.
(i.e. a user cannot start multiple win application of my MyApp.exe by
click it multiple timessss)

Any way to do it properly in VS.net 2005 or 2003?
Thanks a lot.
Dec 12 '05 #1
3 1006
<Windy> schrieb:
I would like to know the way or method to make my win appl. to have
only one instance on a client machine.
(i.e. a user cannot start multiple win application of my MyApp.exe by
click it multiple timessss)

Any way to do it properly in VS.net 2005 or 2003?


VS.NET 2002/2003:

Check out the code and links here (just ignore the German text):

<URL:http://dotnet.mvps.org/dotnet/code/application/#SingleInstance>

VS 2005:

In VB, select the appropriate checkbox in "My Project".

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Dec 12 '05 #2
<Windy> schrieb
Hi all,
I would like to know the way or method to make my win appl. to
have only one instance on a client machine.
(i.e. a user cannot start multiple win application of my MyApp.exe by
click it multiple timessss)

Any way to do it properly in VS.net 2005 or 2003?
Thanks a lot.

http://groups.google.com/groups?q=%2...ring=d&num=10&

VS 2005: Help -> Search: "single instance"
Armin
Dec 12 '05 #3
Windy,

Have a look at this (don't forget to look in the text for 2005)

http://www.vb-tips.com/default.aspx?...6-343ac05a7617

I hope this help,

Cor

<Windy> schreef in bericht news:%2***************@TK2MSFTNGP15.phx.gbl...
Hi all,
I would like to know the way or method to make my win appl. to have
only one instance on a client machine.
(i.e. a user cannot start multiple win application of my MyApp.exe by
click it multiple timessss)

Any way to do it properly in VS.net 2005 or 2003?
Thanks a lot.

Dec 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: rollasoc | last post by:
Hi, I'm trying to implement file associations with my application. I've been doing this in phases and I'm stuck at the last hurdle. Phases 1) Installer sets up the file association Main in...
1
by: Konstantin | last post by:
Can someone help me figure out a way to open a form only once in an MDI app. I have an MDI app that contains several forms. I use each form depending on the type of document that the user needs...
0
by: Ted | last post by:
Hi, I am creating in an ASP Page Load event an empty DataTable in a DataSet as follows: Imports System Imports System.Web.UI.WebControls Imports System.Data Imports System.Data.SqlClient...
1
by: Jarod_24 | last post by:
For my Application i have created 3-4 different forms that can be used as the user interface for the program. The user specifies which one he/she wants to use in a ini-file and then my code will...
3
by: Michael Maes | last post by:
Hi, I have a BaseClass-DerivedClass Instance-Issue. Classes: (Framework) Stegosoft.Settings.SerializationClass Stegosoft.Stegosuite.Common.UIStrings (Inherits...
3
by: Chris Pratt | last post by:
I'm sorry to ask such a fundamental question, but is it possible to create a copy of an object in VB.Net 2005? I have an app which, on load, creates an instance of a class, into which it reads a...
11
by: Paulo da Silva | last post by:
I would like to implement something like this: class C1: def __init__(self,xxx): if ... : self.foo = foo self.bar = bar else: self=C1.load(xxx)
14
by: Jordan Marr | last post by:
I have the following class: class ProvisionCollection { ... private int m_VarianceCount; public int VarianceCount { get { return m_VarianceCount; }
2
by: =?Utf-8?B?R2FuZXNhbiBzZWx2YXJhag==?= | last post by:
Hi We are using .net 1.1 on windows 2003 server. This is we are facing in our production server. When we are doing the load testing we are getting the bellow error. While the load testing this...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.