I am writing a dll library (for example for checking login details of a user) and I want to pop up a confirmation dialog or a informational dialog in the process, for example
To accomplish this you need to right click on the project and select "Add Reference", then select the ".NET" tab and click "System.Windows.Forms". Then this should work inside the .dll:
System.Windows.Forms.MessageBox.Show("Hello World!");
Of course this is a bad idea for the original poster (as covered by CodeCaster).