Click here to Skip to main content
15,885,757 members
Home / Discussions / C#
   

C#

 
QuestionIntegrating an unmanaged window into a managed C# app Pin
Keith Vitali19-Apr-10 10:15
Keith Vitali19-Apr-10 10:15 
AnswerRe: Integrating an unmanaged window into a managed C# app Pin
Super Lloyd19-Apr-10 14:21
Super Lloyd19-Apr-10 14:21 
QuestionPlaying multiple videos with AudioVideoPlayback (flickering) [modified] Pin
Caio198519-Apr-10 8:26
Caio198519-Apr-10 8:26 
QuestionModeless dialog issue Pin
aei_totten19-Apr-10 7:52
aei_totten19-Apr-10 7:52 
AnswerRe: Modeless dialog issue Pin
Luc Pattyn19-Apr-10 8:03
sitebuilderLuc Pattyn19-Apr-10 8:03 
GeneralRe: Modeless dialog issue Pin
aei_totten19-Apr-10 8:09
aei_totten19-Apr-10 8:09 
GeneralRe: Modeless dialog issue Pin
Richard Blythe19-Apr-10 9:59
Richard Blythe19-Apr-10 9:59 
GeneralRe: Modeless dialog issue Pin
aei_totten19-Apr-10 10:54
aei_totten19-Apr-10 10:54 
Well the code looks a bit like this.....

public partial class ChatMessageForm : Form<br />
{<br />
    public ChatMessageForm()<br />
    {<br />
        InitializeComponent();<br />
    }<br />
}



        private void ProcessChatMessageEvent()<br />
        {<br />
            ChatMessageForm c = new ChatMessageForm();<br />
            c.Show();<br />
<br />
        }<br />


ProcessChatMessageEvent is called by.....

public void OnEvent(Object sender, EventPublisher.EventPublisherEventArgs eventArgs)<br />
        {<br />
EventID nReceivedEvent = (EventID)eventArgs.iEventID;<br />
switch (nReceivedEvent)<br />
                {<br />
case EventID.eChatMessageEvent:<br />
                        ProcessChatMessageEvent();<br />
                        break;<br />
}<br />
       }


I checked and it works properly outside of the switch which kinda amazes me.
(The OnEvent is a Cisco event handler)
GeneralRe: Modeless dialog issue Pin
Richard Blythe19-Apr-10 11:25
Richard Blythe19-Apr-10 11:25 
GeneralRe: Modeless dialog issue Pin
aei_totten20-Apr-10 3:09
aei_totten20-Apr-10 3:09 
GeneralRe: Modeless dialog issue Pin
aei_totten20-Apr-10 3:50
aei_totten20-Apr-10 3:50 
AnswerRe: Modeless dialog issue Pin
Gregory Gadow19-Apr-10 11:05
Gregory Gadow19-Apr-10 11:05 
GeneralRe: Modeless dialog issue Pin
aei_totten20-Apr-10 2:11
aei_totten20-Apr-10 2:11 
GeneralRe: Modeless dialog issue Pin
aei_totten20-Apr-10 3:33
aei_totten20-Apr-10 3:33 
GeneralRe: Modeless dialog issue Pin
Richard Blythe20-Apr-10 5:48
Richard Blythe20-Apr-10 5:48 
GeneralRe: Modeless dialog issue Pin
aei_totten20-Apr-10 6:11
aei_totten20-Apr-10 6:11 
GeneralRe: Modeless dialog issue Pin
Richard Blythe20-Apr-10 7:10
Richard Blythe20-Apr-10 7:10 
GeneralRe: Modeless dialog issue Pin
aei_totten20-Apr-10 7:31
aei_totten20-Apr-10 7:31 
GeneralRe: Modeless dialog issue Pin
Richard Blythe20-Apr-10 8:00
Richard Blythe20-Apr-10 8:00 
QuestionEject a remote computers CD rom Pin
Jacob Dixon19-Apr-10 7:46
Jacob Dixon19-Apr-10 7:46 
AnswerRe: Eject a remote computers CD rom Pin
Dave Kreskowiak19-Apr-10 10:29
mveDave Kreskowiak19-Apr-10 10:29 
GeneralRe: Eject a remote computers CD rom Pin
Jacob Dixon19-Apr-10 12:40
Jacob Dixon19-Apr-10 12:40 
GeneralRe: Eject a remote computers CD rom Pin
Luc Pattyn19-Apr-10 12:59
sitebuilderLuc Pattyn19-Apr-10 12:59 
GeneralRe: Eject a remote computers CD rom Pin
Dave Kreskowiak19-Apr-10 14:01
mveDave Kreskowiak19-Apr-10 14:01 
Questionwhy move using statement into namespace? [modified][Solved] Pin
yu-jian19-Apr-10 6:33
yu-jian19-Apr-10 6:33 

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.