|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to detect if an app is allready running?Hello
How can i detect if my application is allready started? if it is started, set focus to it else start it? Thanks -- You're not paid to think. A mindless worker is a happy worker. Shut up and do your job! - Tata Feudalac! -------------------------------------------------------- http://www.fotozine.org/index.php?stranica=clan&uid=1352 http://www.thinkgeek.com/brain/gimme.cgi?wid=81d35dc8f http://groups.google.com/group/fejkneraddangub -------------------------------------------------------- Here's a good example:
http://www.codeproject.com/Purgatory/SingleInstanceExample.asp -- Show quoteHTH, Kevin Spencer Microsoft MVP Chicken Salad Surgery What You Seek Is What You Get. "feudalac!" <feuda***@gmail.com> wrote in message news:edon13$gk0$1@ss408.t-com.hr... > Hello > > How can i detect if my application is allready started? > if it is started, set focus to it else start it? > > Thanks > > > -- > You're not paid to think. A mindless worker is a happy worker. Shut up and > do your job! > - Tata Feudalac! > > -------------------------------------------------------- > http://www.fotozine.org/index.php?stranica=clan&uid=1352 > http://www.thinkgeek.com/brain/gimme.cgi?wid=81d35dc8f > http://groups.google.com/group/fejkneraddangub > -------------------------------------------------------- Kevin Spencer wrote:
> Here's a good example: now i have the followinf problem:> > http://www.codeproject.com/Purgatory/SingleInstanceExample.asp > Thanks... in old VB i could set startup to be a form or submain now i don't have SubMain on the list to set it as a startup of my application... but i found a checkbox 'make a single instance app' i checked that and compiled the app... now when i try to run the second instance an error accours and the first instance is crashed... -- You're not paid to think. A mindless worker is a happy worker. Shut up and do your job! - Tata Feudalac! -------------------------------------------------------- http://www.fotozine.org/index.php?stranica=clan&uid=1352 http://www.thinkgeek.com/brain/gimme.cgi?wid=81d35dc8f http://groups.google.com/group/fejkneraddangub -------------------------------------------------------- That's "Main" - not "SubMain".
-- Show quoteHTH, Kevin Spencer Microsoft MVP Chicken Salad Surgery What You Seek Is What You Get. "feudalac!" <feuda***@gmail.com> wrote in message news:edp1u6$gjg$1@ss408.t-com.hr... > Kevin Spencer wrote: >> Here's a good example: >> >> http://www.codeproject.com/Purgatory/SingleInstanceExample.asp >> > Thanks... > > now i have the followinf problem: > > in old VB i could set startup to be a form or submain > > now i don't have SubMain on the list to set it as a startup of my > application... > > but i found a checkbox 'make a single instance app' > i checked that and compiled the app... > now when i try to run the second instance an error accours and the first > instance is crashed... > > > > > -- > You're not paid to think. A mindless worker is a happy worker. Shut up and > do your job! > - Tata Feudalac! > > -------------------------------------------------------- > http://www.fotozine.org/index.php?stranica=clan&uid=1352 > http://www.thinkgeek.com/brain/gimme.cgi?wid=81d35dc8f > http://groups.google.com/group/fejkneraddangub > -------------------------------------------------------- Kevin Spencer wrote:
> That's "Main" - not "SubMain". That's what i meant... it's a habbit of calling it sub main because it > can't be a function... But still... it's not on the list... (i am rather new to VS2005 so i am still finding things thet are not on the same place they were in VS6...) -- You're not paid to think. A mindless worker is a happy worker. Shut up and do your job! - Tata Feudalac! -------------------------------------------------------- http://www.fotozine.org/index.php?stranica=clan&uid=1352 http://www.thinkgeek.com/brain/gimme.cgi?wid=81d35dc8f http://groups.google.com/group/fejkneraddangub -------------------------------------------------------- I wish I could help more, but I do almost no work in VB these days. I do
know that the IDE hides a lot of this stuff from you when working with VB (NOT a good idea, IMHO). But I don't know exactly how it is hidden, or how the IDE works with it. -- Show quoteHTH, Kevin Spencer Microsoft MVP Chicken Salad Surgery What You Seek Is What You Get. "feudalac!" <feuda***@gmail.com> wrote in message news:edpo8o$et7$1@ss408.t-com.hr... > Kevin Spencer wrote: >> That's "Main" - not "SubMain". >> > That's what i meant... it's a habbit of calling it sub main because it > can't be a function... > > But still... it's not on the list... (i am rather new to VS2005 so i am > still finding things thet are not on the same place they were in VS6...) > > -- > You're not paid to think. A mindless worker is a happy worker. Shut up and > do your job! > - Tata Feudalac! > > -------------------------------------------------------- > http://www.fotozine.org/index.php?stranica=clan&uid=1352 > http://www.thinkgeek.com/brain/gimme.cgi?wid=81d35dc8f > http://groups.google.com/group/fejkneraddangub > -------------------------------------------------------- Kevin Spencer wrote:
> I wish I could help more, but I do almost no work in VB these days. I do yeah... not a good idea> know that the IDE hides a lot of this stuff from you when working with VB > (NOT a good idea, IMHO). But I don't know exactly how it is hidden, or how > the IDE works with it. > -- You're not paid to think. A mindless worker is a happy worker. Shut up and do your job! - Tata Feudalac! -------------------------------------------------------- http://www.fotozine.org/index.php?stranica=clan&uid=1352 http://www.thinkgeek.com/brain/gimme.cgi?wid=81d35dc8f http://groups.google.com/group/fejkneraddangub -------------------------------------------------------- |
|||||||||||||||||||||||