IcmpSendEcho2 is available in icmp.dll on Windows 2000; it is available in iphlpapi.dll on later versions of Windows. OS version checking is not recommended. Applications requiring portability with this API across Windows 2000, Windows XP, Windows Server 2003 and later Windows versions should not statically link to either icmp.dll or iphlpapi.dll. A Rather, the application should check for the presence of IcmpSendEcho2 in iphlpapi.dll with calls to LoadLibrary and GetProcAddress. Failing that, the application should check for the presence of IcmpSendEcho2 in icmp.dll with calls to LoadLibrary and GetProcAddress.Windows Me/98/95: Event, ApcRoutine and ApcContext are ignored.
KeyAscii = 0
End Sub
原来的textbox的visible属性设为false.
在textbox的change事件中:label.caption=text1.text
text1.text=条码枪得到的数据