Click here to Skip to main content
15,898,373 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: SingleInstance Application Pin
Pete O'Hanlon21-Jun-08 0:49
mvePete O'Hanlon21-Jun-08 0:49 
GeneralRe: SingleInstance Application Pin
Jammer21-Jun-08 7:06
Jammer21-Jun-08 7:06 
GeneralRe: SingleInstance Application Pin
Pete O'Hanlon22-Jun-08 8:39
mvePete O'Hanlon22-Jun-08 8:39 
GeneralRe: SingleInstance Application Pin
Jammer22-Jun-08 23:43
Jammer22-Jun-08 23:43 
GeneralRe: SingleInstance Application Pin
Pete O'Hanlon23-Jun-08 0:02
mvePete O'Hanlon23-Jun-08 0:02 
GeneralRe: SingleInstance Application Pin
Jammer23-Jun-08 0:41
Jammer23-Jun-08 0:41 
GeneralRe: SingleInstance Application Pin
Jammer20-Jun-08 13:20
Jammer20-Jun-08 13:20 
AnswerRe: SingleInstance Application Pin
RNEELY27-Jun-08 7:43
RNEELY27-Jun-08 7:43 
Yes the app class is the place to do the check.
Try putting code inside the App:OnStartup() function.

<br />
public partial class App : Application<br />
{<br />
    protected override void OnStartup(StartupEventArgs e)<br />
    {<br />
        bool mutexCreated;<br />
        mutexRunOnce = new System.Threading.Mutex(<br />
            true, "{someGUID}", out mutexCreated);<br />
        if (!mutexCreated)<br />
        {<br />
            return;<br />
        }<br />
<br />
        base.OnStartup(e);<br />
    }<br />
    //...<br />
}<br />


Sincerely,
-Ron

QuestionBrain hits wall - WPF Help Please Pin
Rei Roldan19-Jun-08 7:54
Rei Roldan19-Jun-08 7:54 
AnswerRe: Brain hits wall - WPF Help Please Pin
Gideon Engelberth19-Jun-08 10:12
Gideon Engelberth19-Jun-08 10:12 
GeneralRe: Brain hits wall - WPF Help Please Pin
Rei Roldan19-Jun-08 10:21
Rei Roldan19-Jun-08 10:21 
GeneralRe: Brain hits wall - WPF Help Please Pin
Paul Conrad21-Jun-08 4:05
professionalPaul Conrad21-Jun-08 4:05 
QuestionWPF Navigation Pin
BlitzPackage18-Jun-08 8:44
BlitzPackage18-Jun-08 8:44 
AnswerRe: WPF Navigation Pin
Pete O'Hanlon18-Jun-08 8:52
mvePete O'Hanlon18-Jun-08 8:52 
GeneralRe: WPF Navigation Pin
BlitzPackage18-Jun-08 9:00
BlitzPackage18-Jun-08 9:00 
GeneralRe: WPF Navigation Pin
Pete O'Hanlon18-Jun-08 9:11
mvePete O'Hanlon18-Jun-08 9:11 
GeneralRe: WPF Navigation Pin
BlitzPackage19-Jun-08 11:59
BlitzPackage19-Jun-08 11:59 
QuestionHow to link silverlight application created using Blend in asp.net using vs2008? Pin
katelva17-Jun-08 8:04
katelva17-Jun-08 8:04 
AnswerRe: How to link silverlight application created using Blend in asp.net using vs2008? Pin
Michael Sync17-Jun-08 17:10
Michael Sync17-Jun-08 17:10 
GeneralRe: How to link silverlight application created using Blend in asp.net using vs2008? Pin
katelva18-Jun-08 18:22
katelva18-Jun-08 18:22 
GeneralRe: How to link silverlight application created using Blend in asp.net using vs2008? Pin
Michael Sync20-Jun-08 2:03
Michael Sync20-Jun-08 2:03 
GeneralRe: How to link silverlight application created using Blend in asp.net using vs2008? Pin
katelva24-Jun-08 8:34
katelva24-Jun-08 8:34 
GeneralRe: How to link silverlight application created using Blend in asp.net using vs2008? Pin
Michael Sync24-Jun-08 14:52
Michael Sync24-Jun-08 14:52 
QuestionMultiple ItemTemplates in a ListBox Pin
dlarkin7716-Jun-08 1:35
dlarkin7716-Jun-08 1:35 
AnswerRe: Multiple ItemTemplates in a ListBox Pin
Christian Graus16-Jun-08 2:18
protectorChristian Graus16-Jun-08 2:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.