How the sample application works
The sample application opens the specified file, reads the XML from the file, and writes the XML as a string to the Text View tab.
When you click the Send to Queue button, the application converts the XML in the Text View tab to an MSMQ message. To complete the message, the application assigns the value from the Message Label box to the message.
The application sends the message to the MSMQ queue specified in the Local Private Queue list. The application opens a dialog box that states the MSMQ message was successfully sent to the queue.
If an error occurs, the application opens a dialog box and displays the error message.