When the application is started again

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • chris.dannemiller@gmail.com

    When the application is started again

    I am allready preventing a second instance of a application from
    running using a Mutex. How can I signal the first application telling
    it that the user wanted to start the application again so I can bring a
    window to the front for example.

  • Dale

    #2
    RE: When the application is started again

    My article at http://www.dalepreston.com/Blog/2005...-run-once.html
    demonstrates sending messages to the running instance and bringing the
    instance to the front.
    --
    Dale Preston
    MCAD C#
    MCSE, MCDBA


    "chris.dannemil ler@gmail.com" wrote:
    [color=blue]
    > I am allready preventing a second instance of a application from
    > running using a Mutex. How can I signal the first application telling
    > it that the user wanted to start the application again so I can bring a
    > window to the front for example.
    >
    >[/color]

    Comment

    • Bob Powell [MVP]

      #3
      Re: When the application is started again

      Windows Forms Tips and Tricks shows how to do this.

      --
      Bob Powell [MVP]
      Visual C#, System.Drawing

      Ramuseco Limited .NET consulting


      Find great Windows Forms articles in Windows Forms Tips and Tricks


      Answer those GDI+ questions with the GDI+ FAQ


      All new articles provide code in C# and VB.NET.
      Subscribe to the RSS feeds provided and never miss a new article.



      <chris.dannemil ler@gmail.com> wrote in message
      news:1138223469 .157679.272550@ z14g2000cwz.goo glegroups.com.. .[color=blue]
      >I am allready preventing a second instance of a application from
      > running using a Mutex. How can I signal the first application telling
      > it that the user wanted to start the application again so I can bring a
      > window to the front for example.
      >[/color]


      Comment

      Working...