The USBDemo link I gave should be more than enough to get started. It has VB6 code in. If you need .NET syntax, you may try to use the automatic Upgrade/converter tool.

There's also a VB.NET template available at the following link
http://www.picbasic.co.uk/forum/show...27&postcount=9

If you know VB & C#, it shouldn't be that hard to convert that VB template to C#.

Another alternative is to use Jan Axelson's codes
http://www.lvr.com/hidpage.htm

do u know about USB master to slave converter
Not sure to understand what you mean, but I feel you might talk about USB OTG. If so, there's no USB OTG available for PIC16, PIC18, just for PIC24 & PIC32 family, and they're not supported by PBP.