المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Control Timer is not work ??



C# Programming
07-17-2009, 06:40 PM
Here the code programing network about receive message

private void Received(IAsyncResult iar)
{
NetworkStream ns = (NetworkStream)iar.AsyncState;
int byteRead = ns.EndRead(iar);
String sReply = Encoding.ASCII.GetString(m_byteData,0,byteRead);
String sProtocol = sReply.Substring(0, 8);

switch (sProtocol)
{
case "GETPRES ":
////code is not work
if(timerSendMonitorDesktop.Enabled ==false)
timerSendMonitorDesktop.Enabled = true;
////
break;
}
}

private void timerSendMonitorDesktop_Tick(object sender, EventArgs e)
{
MessageBox.Show("abc");
}



Help me!Thanks you http://www.barakasoft.com/script/Forums/Images/smiley_smile.gif