I assume you have looked at
**broken link removed**
if you download the MCHPFUSB framwork
**broken link removed**
there is plenty of sample code including a HID device custom demo
C:\Microchip Solutions v2012-04-03\USB\Device - HID - Custom Demos
this includes example PIC firmware USB device code and Visual C++ USB host code, e.g. using an Explorer 16 switching the LEDs ON/OFF and read a switch state. You can adapt this to suit your requirements.
it is fairly easy to implement VB.NET and C# code as well