>> Thanks Bruce, I did look your page before but unfortunately it wont >> import >> into either VB5 or VB.NET so I cant get a feeling of what to do. >> I'll have a look at your files with a text editor to see if I can glean >> anything from your files. > > You can mix VB/SoftWire controls all you want. SoftWire throws up "Warning > this is not a SoftWire supported control", but it's simple to make them > all work > together. I simply dropped the MSComm control on the form, and added my > own > code. > I must be missing something, or its a dotnet thing. if i add a button and led and dont wire them up and then add in vb manually Private Sub Button1_PostRunBlock(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles_ Button1.PostRunBlock led1.value = true end sub if I then run it, nothing happens but if i manually add a wire between control_out of the button and the control_in of the led it will work. so i seem to be having some kind of event handeling problem. any ideas? > Private Sub MSComm1_OnComm() > CLed3.Value = True ' Ping the LED to indicate serial activity > If MSComm1.CommEvent = comEvReceive Then > sData = MSComm1.Input ' Grab inbound serial data > If Right$(sData, 2) <> vbCrLf Then ' Look for CR, LF > sData = vbNullString > Else > CAnalogMeter1.Value = Left$(sData, 5) ' Grab 5 bytes before CR LF > Counts = Counts + 1 ' Increment sample counts > Me.Caption = " Sample Count [ " & Counts & " ]" > End If > End If > Pause 5 > CLed3.Value = False > End Sub > >> any other suggestions? > > I would try to get VB6 unless you prefer to go with .Net. I've tried .Net, > and I'll > stick with VB6. I've tried that before as i also disliked .Net but it means buying another copy of visualstudio.net plus 4 other microsoft products (i was told it could be a mouse driver) through an "autorised microsoft reseller" and then applying to microsoft for a version downgrade to VB6 this is a very expensive option.. On the upside the Softwire controls for .Net look much much nicer.... Richard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist