Click here to Skip to main content
15,892,059 members
Home / Discussions / C#
   

C#

 
QuestionDriver Pin
Pankaj Sardana28-May-08 1:32
Pankaj Sardana28-May-08 1:32 
AnswerRe: Driver Pin
benjymous28-May-08 1:37
benjymous28-May-08 1:37 
AnswerRe: Driver Pin
Sam Xavier28-May-08 23:11
Sam Xavier28-May-08 23:11 
QuestionHow to get a popup in Window Application Pin
Member 369905328-May-08 1:20
Member 369905328-May-08 1:20 
AnswerRe: How to get a popup in Window Application Pin
leppie28-May-08 1:27
leppie28-May-08 1:27 
Questionusing timer to switch an alert on and off Pin
steve_rm28-May-08 0:51
steve_rm28-May-08 0:51 
AnswerRe: using timer to switch an alert on and off Pin
leppie28-May-08 1:17
leppie28-May-08 1:17 
QuestionRe: using timer to switch an alert on and off Pin
steve_rm28-May-08 16:15
steve_rm28-May-08 16:15 
Hello,

I solved the problem using the code below and setting the boolean flag in the timer tick event. However, as the timer is enabled in a thread that is not the UI thread, when I set the timer to enabled to true, the timer doesn't start. I was thinking of invoking the timer. However, the timer doesn't have that property.

private int OnIncomingCall(int _callID, string _caller)<br />
        {<br />
            callID = _callID;<br />
            caller = _caller;       <br />
<br />
            if (this.btnAnswer.InvokeRequired)<br />
            {<br />
                this.btnAnswer.Invoke(new EventHandler(UpdateAnswerButton));<br />
            }<br />
            <br />
            if (this.lblCallStatus.InvokeRequired)<br />
            {<br />
                this.lblCallStatus.Invoke(new EventHandler(DisplayCaller));<br />
            }<br />
            this.tmrVibrate.Enabled = true; //Start the timer to enable vibration.<br />
          <br />
            drvAnswerCall(_callID, 180); // send: RINGING<br />
            <br />
            return 1;<br />
        }



//Timer to oscillate the vibration in the PDA for an incoming call alert.<br />
        //Timer is disabled when the user answers the call.<br />
        static Boolean ledStatus = true; //Status of when to turn on and off the vibration<br />
        private void tmrVibrate_Tick(object sender, EventArgs e)<br />
        {<br />
            if (ledStatus == true)<br />
            {<br />
                vibrateAlert.SetLedStatus(1, Led.LedState.On);<br />
                ledStatus = false;<br />
            }<br />
            else<br />
            {<br />
                vibrateAlert.SetLedStatus(1, Led.LedState.Off);<br />
                ledStatus = true;<br />
            }<br />
        }


Many thanks for any more suggestions,
QuestionHow do I Convert a byte array to a IPAddress? Pin
Zig15828-May-08 0:32
Zig15828-May-08 0:32 
AnswerRe: How do I Convert a byte array to a IPAddress? Pin
Giorgi Dalakishvili28-May-08 0:41
mentorGiorgi Dalakishvili28-May-08 0:41 
GeneralRe: How do I Convert a byte array to a IPAddress? Pin
Zig15828-May-08 15:39
Zig15828-May-08 15:39 
AnswerRe: How do I Convert a byte array to a IPAddress? Pin
dan!sh 28-May-08 0:44
professional dan!sh 28-May-08 0:44 
Questionchanging resolution (dpi) Pin
stephan_00728-May-08 0:22
stephan_00728-May-08 0:22 
AnswerRe: changing resolution (dpi) Pin
leppie28-May-08 3:12
leppie28-May-08 3:12 
QuestionAborting a running procedure Pin
WebMaster27-May-08 23:49
WebMaster27-May-08 23:49 
AnswerRe: Aborting a running procedure Pin
Christian Graus27-May-08 23:51
protectorChristian Graus27-May-08 23:51 
AnswerRe: Aborting a running procedure Pin
Colin Angus Mackay27-May-08 23:53
Colin Angus Mackay27-May-08 23:53 
GeneralRe: Aborting a running procedure Pin
WebMaster28-May-08 0:00
WebMaster28-May-08 0:00 
GeneralRe: Aborting a running procedure Pin
Bijesh28-May-08 0:49
Bijesh28-May-08 0:49 
GeneralRe: Aborting a running procedure Pin
WebMaster28-May-08 0:55
WebMaster28-May-08 0:55 
QuestionHelp in calling form Pin
Saiyed Alam27-May-08 23:13
Saiyed Alam27-May-08 23:13 
AnswerRe: Help in calling form Pin
Gareth H27-May-08 23:39
Gareth H27-May-08 23:39 
AnswerRe: Help in calling form Pin
Mandaar Kulkarni28-May-08 1:22
Mandaar Kulkarni28-May-08 1:22 
AnswerRe: Help in calling form Pin
kabirkhan28-May-08 8:49
kabirkhan28-May-08 8:49 
QuestionAbout COM-based application logic Pin
MehmetFurkan27-May-08 23:06
MehmetFurkan27-May-08 23:06 

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.