There are heaps of example articles here on CodeProject dealing with various subjects relating to MSMQ. Doesn't sound like you even tried a search?
Here is one such article;
Programming MSMQ in .NET - Part 1[
^]
Go have a look at all the others returned in the results.