PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms Instancing checkbox not there

Reply

Instancing checkbox not there

 
Thread Tools Rate Thread
Old 04-01-2007, 02:42 AM   #1
Bill Angus
Guest
 
Posts: n/a
Default Instancing checkbox not there


I want to make an application that I have been working on a single instance
application. the singleinstance checkbox does not appear anywhere on the
project designer window. I suppose this is a bug of some kind in VStudio or
the the project designer. Can anybody tell me if there is a way to make an
VB 2005 application into a single instance app without using the project
designer checkbox?

I tried to trap the next instance event in "application events", as
below.... but the did not work...

Private Sub me_AlreadyOpen(ByVal sender As System.Object, ByVal e As
Microsoft.VisualBasic.ApplicationServices.StartupNextInstanceEventArgs)
Handles MyBase.StartupNextInstance

frmPM_Main.Select()

End Sub

any ideas greatly appreciated.
Happy Nnew Year!

Bill Angus, MA
http://www.psychtest.com


  Reply With Quote
Old 04-01-2007, 02:50 AM   #2
RobinS
Guest
 
Posts: n/a
Default Re: Instancing checkbox not there

In Visual Studio 2005, in your Project Properties (double-click on
MyProject), under the Application tab, there is a checkbox for "Make
single instance application".

Robin S.
--------------------------------------
"Bill Angus" <mdangus@nospam.psychtest.com> wrote in message
news:%23q3VSo6LHHA.2140@TK2MSFTNGP03.phx.gbl...
>I want to make an application that I have been working on a single
>instance
> application. the singleinstance checkbox does not appear anywhere on
> the
> project designer window. I suppose this is a bug of some kind in
> VStudio or
> the the project designer. Can anybody tell me if there is a way to
> make an
> VB 2005 application into a single instance app without using the
> project
> designer checkbox?
>
> I tried to trap the next instance event in "application events", as
> below.... but the did not work...
>
> Private Sub me_AlreadyOpen(ByVal sender As System.Object, ByVal e As
> Microsoft.VisualBasic.ApplicationServices.StartupNextInstanceEventArgs)
> Handles MyBase.StartupNextInstance
>
> frmPM_Main.Select()
>
> End Sub
>
> any ideas greatly appreciated.
> Happy Nnew Year!
>
> Bill Angus, MA
> http://www.psychtest.com
>
>



  Reply With Quote
Old 05-01-2007, 03:52 PM   #3
Bill Angus
Guest
 
Posts: n/a
Default Re: Instancing checkbox not there

That's what my problem is... when I look at the tab there is no check-box for Make single instance !!

All I have is 2 text boxes, 3 drop-down combo boxes and a button... for the following....
Assembly name: Root Namespace:
Application type: Icon:
Startup object: Assembly information:

There is no option to make my app single instance. I believe that when I defined the windows application project I did make it single instance, but it is now no longer single instance and I find a was to change it back and set it up correctly.

Thanks in advance anybody who knows about this bug... and if there is a way to fix it. Have a great day!

Bill Angus, MA
http://www.psychtest.com
"RobinS" <RobinS@NoSpam.yah.none> wrote in message news:c76dndMgDfkc9gHYnZ2dnUVZ_u-unZ2d@comcast.com...
In Visual Studio 2005, in your Project Properties (double-click on
MyProject), under the Application tab, there is a checkbox for "Make
single instance application".

Robin S.
--------------------------------------
"Bill Angus" <mdangus@nospam.psychtest.com> wrote in message
news:%23q3VSo6LHHA.2140@TK2MSFTNGP03.phx.gbl...
>I want to make an application that I have been working on a single
>instance
> application. the singleinstance checkbox does not appear anywhere on
> the
> project designer window. I suppose this is a bug of some kind in
> VStudio or
> the the project designer. Can anybody tell me if there is a way to
> make an
> VB 2005 application into a single instance app without using the
> project
> designer checkbox?
>
> I tried to trap the next instance event in "application events", as
> below.... but the did not work...
>
> Private Sub me_AlreadyOpen(ByVal sender As System.Object, ByVal e As
> Microsoft.VisualBasic.ApplicationServices.StartupNextInstanceEventArgs)
> Handles MyBase.StartupNextInstance
>
> frmPM_Main.Select()
>
> End Sub
>
> any ideas greatly appreciated.
> Happy Nnew Year!
>
> Bill Angus, MA
> http://www.psychtest.com
>
>



  Reply With Quote
Old 05-01-2007, 09:55 PM   #4
RobinS
Guest
 
Posts: n/a
Default Re: Instancing checkbox not there

You have nothing after Startup object? Really? What kind of application
is it?
Is it a Windows Application or Web? VB or C#? If you have multiple
projects,
are you looking at the properties on the one that is the startup?

Robin S.
"Bill Angus" <mdangus@dont-spam-me.psychtest.com> wrote in message
news:uBE98GOMHHA.3872@TK2MSFTNGP06.phx.gbl...
That's what my problem is... when I look at the tab there is no
check-box for Make single instance !!

All I have is 2 text boxes, 3 drop-down combo boxes and a button... for
the following....
Assembly name: Root Namespace:
Application type: Icon:
Startup object: Assembly information:

There is no option to make my app single instance. I believe that when I
defined the windows application project I did make it single instance,
but it is now no longer single instance and I find a was to change it
back and set it up correctly.

Thanks in advance anybody who knows about this bug... and if there is a
way to fix it. Have a great day!

Bill Angus, MA
http://www.psychtest.com
"RobinS" <RobinS@NoSpam.yah.none> wrote in message
news:c76dndMgDfkc9gHYnZ2dnUVZ_u-unZ2d@comcast.com...
In Visual Studio 2005, in your Project Properties (double-click on
MyProject), under the Application tab, there is a checkbox for "Make
single instance application".

Robin S.
--------------------------------------
"Bill Angus" <mdangus@nospam.psychtest.com> wrote in message
news:%23q3VSo6LHHA.2140@TK2MSFTNGP03.phx.gbl...
>I want to make an application that I have been working on a single
>instance
> application. the singleinstance checkbox does not appear anywhere on
> the
> project designer window. I suppose this is a bug of some kind in
> VStudio or
> the the project designer. Can anybody tell me if there is a way to
> make an
> VB 2005 application into a single instance app without using the
> project
> designer checkbox?
>
> I tried to trap the next instance event in "application events", as
> below.... but the did not work...
>
> Private Sub me_AlreadyOpen(ByVal sender As System.Object, ByVal e As
> Microsoft.VisualBasic.ApplicationServices.StartupNextInstanceEventArgs)
> Handles MyBase.StartupNextInstance
>
> frmPM_Main.Select()
>
> End Sub
>
> any ideas greatly appreciated.
> Happy Nnew Year!
>
> Bill Angus, MA
> http://www.psychtest.com
>
>


  Reply With Quote
Old 06-01-2007, 02:12 AM   #5
Bill Angus
Guest
 
Posts: n/a
Default Re: Instancing checkbox not there

Yep the checkbox is not there. This is a multiform, VB, windows forms
application. There is one project in the solution and a setup project that
creates the setup/distribution .MSI

I suppose I can create a new Windows forms app, set the checkbox for single
instance, and then try to figure out what sort of code this generates. then
I can paste the generated code or something like it into my app.

Bill Angus, MA
http://www.psychtest.com

"RobinS" <RobinS@NoSpam.yah.none> wrote in message
news:Xv2dnQcEE9btVAPYnZ2dnUVZ_oupnZ2d@comcast.com...
> You have nothing after Startup object? Really? What kind of application
> is it?
> Is it a Windows Application or Web? VB or C#? If you have multiple
> projects,
> are you looking at the properties on the one that is the startup?
>
> Robin S.
> "Bill Angus" <mdangus@dont-spam-me.psychtest.com> wrote in message
> news:uBE98GOMHHA.3872@TK2MSFTNGP06.phx.gbl...
> That's what my problem is... when I look at the tab there is no
> check-box for Make single instance !!
>
> All I have is 2 text boxes, 3 drop-down combo boxes and a button... for
> the following....
> Assembly name: Root Namespace:
> Application type: Icon:
> Startup object: Assembly information:
>
> There is no option to make my app single instance. I believe that when I
> defined the windows application project I did make it single instance,
> but it is now no longer single instance and I find a was to change it
> back and set it up correctly.
>
> Thanks in advance anybody who knows about this bug... and if there is a
> way to fix it. Have a great day!
>
> Bill Angus, MA
> http://www.psychtest.com
> "RobinS" <RobinS@NoSpam.yah.none> wrote in message
> news:c76dndMgDfkc9gHYnZ2dnUVZ_u-unZ2d@comcast.com...
> In Visual Studio 2005, in your Project Properties (double-click on
> MyProject), under the Application tab, there is a checkbox for "Make
> single instance application".
>
> Robin S.
> --------------------------------------
> "Bill Angus" <mdangus@nospam.psychtest.com> wrote in message
> news:%23q3VSo6LHHA.2140@TK2MSFTNGP03.phx.gbl...
> >I want to make an application that I have been working on a single
> >instance
> > application. the singleinstance checkbox does not appear anywhere on
> > the
> > project designer window. I suppose this is a bug of some kind in
> > VStudio or
> > the the project designer. Can anybody tell me if there is a way to
> > make an
> > VB 2005 application into a single instance app without using the
> > project
> > designer checkbox?
> >
> > I tried to trap the next instance event in "application events", as
> > below.... but the did not work...
> >
> > Private Sub me_AlreadyOpen(ByVal sender As System.Object, ByVal e As
> > Microsoft.VisualBasic.ApplicationServices.StartupNextInstanceEventArgs)
> > Handles MyBase.StartupNextInstance
> >
> > frmPM_Main.Select()
> >
> > End Sub
> >
> > any ideas greatly appreciated.
> > Happy Nnew Year!
> >
> > Bill Angus, MA
> > http://www.psychtest.com
> >
> >

>



  Reply With Quote
Old 06-01-2007, 07:51 AM   #6
RobinS
Guest
 
Posts: n/a
Default Re: Instancing checkbox not there

That's so weird. Why don't you create a blank solution, then
add all of your forms and stuff to it -- if you choose "Add
Existing Item", it will copy it from wherever it is into the
new directory. Maybe that will fix the problem.

Robin S.
-------------------
"Bill Angus" <mdangus@nospam.psychtest.com> wrote in message
news:OQ0uegTMHHA.140@TK2MSFTNGP04.phx.gbl...
> Yep the checkbox is not there. This is a multiform, VB, windows forms
> application. There is one project in the solution and a setup project
> that
> creates the setup/distribution .MSI
>
> I suppose I can create a new Windows forms app, set the checkbox for
> single
> instance, and then try to figure out what sort of code this generates.
> then
> I can paste the generated code or something like it into my app.
>
> Bill Angus, MA
> http://www.psychtest.com
>
> "RobinS" <RobinS@NoSpam.yah.none> wrote in message
> news:Xv2dnQcEE9btVAPYnZ2dnUVZ_oupnZ2d@comcast.com...
>> You have nothing after Startup object? Really? What kind of
>> application
>> is it?
>> Is it a Windows Application or Web? VB or C#? If you have multiple
>> projects,
>> are you looking at the properties on the one that is the startup?
>>
>> Robin S.
>> "Bill Angus" <mdangus@dont-spam-me.psychtest.com> wrote in message
>> news:uBE98GOMHHA.3872@TK2MSFTNGP06.phx.gbl...
>> That's what my problem is... when I look at the tab there is no
>> check-box for Make single instance !!
>>
>> All I have is 2 text boxes, 3 drop-down combo boxes and a button...
>> for
>> the following....
>> Assembly name: Root Namespace:
>> Application type: Icon:
>> Startup object: Assembly information:
>>
>> There is no option to make my app single instance. I believe that
>> when I
>> defined the windows application project I did make it single
>> instance,
>> but it is now no longer single instance and I find a was to change it
>> back and set it up correctly.
>>
>> Thanks in advance anybody who knows about this bug... and if there is
>> a
>> way to fix it. Have a great day!
>>
>> Bill Angus, MA
>> http://www.psychtest.com
>> "RobinS" <RobinS@NoSpam.yah.none> wrote in message
>> news:c76dndMgDfkc9gHYnZ2dnUVZ_u-unZ2d@comcast.com...
>> In Visual Studio 2005, in your Project Properties (double-click on
>> MyProject), under the Application tab, there is a checkbox for "Make
>> single instance application".
>>
>> Robin S.
>> --------------------------------------
>> "Bill Angus" <mdangus@nospam.psychtest.com> wrote in message
>> news:%23q3VSo6LHHA.2140@TK2MSFTNGP03.phx.gbl...
>> >I want to make an application that I have been working on a single
>> >instance
>> > application. the singleinstance checkbox does not appear anywhere
>> > on
>> > the
>> > project designer window. I suppose this is a bug of some kind in
>> > VStudio or
>> > the the project designer. Can anybody tell me if there is a way to
>> > make an
>> > VB 2005 application into a single instance app without using the
>> > project
>> > designer checkbox?
>> >
>> > I tried to trap the next instance event in "application events", as
>> > below.... but the did not work...
>> >
>> > Private Sub me_AlreadyOpen(ByVal sender As System.Object, ByVal e
>> > As
>> > Microsoft.VisualBasic.ApplicationServices.StartupNextInstanceEventArgs)
>> > Handles MyBase.StartupNextInstance
>> >
>> > frmPM_Main.Select()
>> >
>> > End Sub
>> >
>> > any ideas greatly appreciated.
>> > Happy Nnew Year!
>> >
>> > Bill Angus, MA
>> > http://www.psychtest.com
>> >
>> >

>>

>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off