title: Display messagebox in dll library
body: <p>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</p>
  
  <p><code>"Are you sure you want to continue? (Yes/No/Cancel)"</code></p>
  
  <p>for some reason. At present I am need this for an application in Winforms and I want to use same dll for my other webforms applications also. Can anyone guide how to achieve it? Need less to say I don't want to reference <code>System.Windows.Forms</code> or <code>System.Web</code>. Can any one give me some pointers? I am using .net 4.0</p>
  
  <p>I don't want to for Publication/Subscription of events as I am not very familiar with cab architecture.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I have a dll for creating database at runtime of an application. So my dll generally checks if the database already exists and is upto date or not, if it is then stop. But if it does not exist or not upto date, then I want to ask user if he want to update it now or afterwards. If user says now, update it and says afterwards continue to application. It is just an example and any relevant information on this is welcome.</p>
  
  <p>Thanks.</p>