im currently working on a vb project, n after doingsome research, ive got this code:
Dim dat(4) ' Declare our 4-byte array
Private Sub Command1_Click() ' Attach code to command button for exit
If MSComm1.PortOpen = True Then
MSComm1.PortOpen = False
Private Sub Form_Load() ' Form Load Code
MSComm1.Settings = "1200,N,8,1" 'Set baud rate
MSComm1.CommPort = 1 'Set comm port
unfortunately, i dont know how to activete or initialize he code.
for information, this code is for serial communication with ir receiver...plz help me...