Click here to Skip to main content
15,911,707 members
Home / Discussions / C#
   

C#

 
GeneralRe: KeyBoard event when form is not active? Pin
Xmen Real 25-Feb-09 23:10
professional Xmen Real 25-Feb-09 23:10 
AnswerRe: KeyBoard event when form is not active? Pin
Muammar©26-Feb-09 1:39
Muammar©26-Feb-09 1:39 
Questiongraphs in c# Pin
lost_in_code25-Feb-09 22:27
lost_in_code25-Feb-09 22:27 
AnswerRe: graphs in c# Pin
Member 455443325-Feb-09 22:37
Member 455443325-Feb-09 22:37 
Questioncalling a class in main method Pin
aratireddy25-Feb-09 22:08
aratireddy25-Feb-09 22:08 
AnswerRe: calling a class in main method Pin
Cracked-Down25-Feb-09 22:14
Cracked-Down25-Feb-09 22:14 
QuestionEye tracing algorithm Pin
sanforjackass25-Feb-09 21:28
sanforjackass25-Feb-09 21:28 
AnswerRe: Eye tracing algorithm Pin
CPallini25-Feb-09 22:07
mveCPallini25-Feb-09 22:07 
QuestionRe: Eye tracing algorithm Pin
sanforjackass26-Feb-09 22:57
sanforjackass26-Feb-09 22:57 
Questionprocess dieng Pin
shefa' isied25-Feb-09 20:42
shefa' isied25-Feb-09 20:42 
AnswerRe: process dieng Pin
Eddy Vluggen25-Feb-09 21:03
professionalEddy Vluggen25-Feb-09 21:03 
GeneralRe: process dieng Pin
Shyam K Pananghat25-Feb-09 22:39
Shyam K Pananghat25-Feb-09 22:39 
GeneralRe: process dieng Pin
shefa' isied25-Feb-09 23:58
shefa' isied25-Feb-09 23:58 
GeneralRe: process dieng Pin
Eddy Vluggen26-Feb-09 1:13
professionalEddy Vluggen26-Feb-09 1:13 
QuestionCPU Pin
shefa' isied25-Feb-09 20:31
shefa' isied25-Feb-09 20:31 
AnswerRe: CPU Pin
Cracked-Down25-Feb-09 22:26
Cracked-Down25-Feb-09 22:26 
AnswerRe: CPU Pin
lawrenceinba25-Feb-09 23:54
lawrenceinba25-Feb-09 23:54 
QuestionSocket Programming : Reading From Multiple RFID Reaer Pin
Ravindra Bisen25-Feb-09 20:13
Ravindra Bisen25-Feb-09 20:13 
hi,Rose | [Rose]
I am working on a door lock system. i want to read data from each reader.
if coming data is valid card no. then i have to give 'Gy'[G is address of reader] command to that particular reader. i am using axWinsock1 component and using timer control to read data from
reader . it continuously reading from 'G' reader.

private void timer1_Tick(object sender, EventArgs e)
{
lbl_time.Text = System.DateTime.Now.ToString();
try
{
string cmd = "G0";
byte[] msg = Encoding.ASCII.GetBytes(cmd.ToString());
axWinsock1.SendData(msg);
Object objData = new System.Object();
axWinsock1.GetData(ref objData, 8, 1024);
string strData = (string)objData;
if (strData.Trim() != "0")
{
timer1.Enabled = false;
txtDataRx.Text = txtDataRx.Text + "Input Time : "+ System.DateTime.Now.ToString();
txtDataRx.Text = txtDataRx.Text + " Card No. : "+ strData;
cmd = "Gy";
msg = Encoding.ASCII.GetBytes(cmd.ToString());
axWinsock1.SendData(msg);
axWinsock1.SendData(msg1);
txtDataRx.Text = txtDataRx.Text + "Door Open";
timer1.Enabled = true;
}
}
catch(Exception se)
{
//MessageBox.Show ( );
string msg = se.ToString();
}

}
HOW I IMPLEMENT THIS FOR MORE THEN ONE READER ?
OMG | :OMG:
AnswerRe: Socket Programming : Reading From Multiple RFID Reaer Pin
krishnajaga19-Nov-09 1:52
krishnajaga19-Nov-09 1:52 
GeneralRe: Socket Programming : Reading From Multiple RFID Reaer Pin
krishnajaga19-Nov-09 1:54
krishnajaga19-Nov-09 1:54 
Questionhow to read a file content, that file was already opened ? Pin
CooperWu25-Feb-09 19:55
CooperWu25-Feb-09 19:55 
AnswerRe: how to read a file content, that file was already opened ? Pin
Xmen Real 25-Feb-09 20:03
professional Xmen Real 25-Feb-09 20:03 
GeneralRe: how to read a file content, that file was already opened ? Pin
CooperWu25-Feb-09 20:21
CooperWu25-Feb-09 20:21 
GeneralRe: how to read a file content, that file was already opened ? Pin
Xmen Real 25-Feb-09 20:25
professional Xmen Real 25-Feb-09 20:25 
GeneralRe: how to read a file content, that file was already opened ? Pin
CooperWu25-Feb-09 20:37
CooperWu25-Feb-09 20:37 

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.