For Programmers: Free Programming Magazines  


Home > Archive > C# > March 2005 > Open form from remote call









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Open form from remote call
mikkel_strack

2005-03-08, 4:00 pm

I have an application that recieves a call from outlook. When that
happends I want a new wondows form to open...
When I try to do that it opens...but crashes..

I belive it must be some kind og sync issue, but I don't kbow how to
handle this..

My code looks something like this...

public void callInsertFromOutlook(ClassTicket t)
{
insertFromOutlookDelegate ifod = new
insertFromOutlookDelegate(insertFromOutl
ook);
ifod.BeginInvoke(t, null, null);
}

delegate void insertFromOutlookDelegate(ClassTicket t);

public void insertFromOutlook(ClassTicket t)
{
initNewTicket();
//Console.WriteLine(t.Summary);
//this.Activate();
this.Show();
}

Mikkel
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com