Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7884459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:48:19+00:00 2026-06-03T04:48:19+00:00

I am writing a dll library (for example for checking login details of a

  • 0

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

"Are you sure you want to continue? (Yes/No/Cancel)"

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 System.Windows.Forms or System.Web. Can any one give me some pointers? I am using .net 4.0

I don’t want to for Publication/Subscription of events as I am not very familiar with cab architecture.

EDIT

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.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T04:48:21+00:00Added an answer on June 3, 2026 at 4:48 am

    You really shouldn’t. This does not belong in a library, but should be done in the application that uses this library instead.

    Where a WinForms application might solve it by showing a MessageBox, a web application might perform the request without asking after a successful POST (since a POST usually shows the intent to modify a resource).

    When for example your library is used for logging in, simply throw a AuthenticationException, so the client application (whether it’s WinForms, web, or whatever) can catch that and display the appropriate message.


    As for your edit:

    I have a dll for creating database at runtime of an application …

    Why not expose two methods like IsDatabaseUpToDate() and UpdateDatabase()? Then in the client, you can call the first method. If it returns false, you ask the user (be it with a MessageBox, an HTML form, a JavaScript Alert, a simple Yes button or a blinking tile) whether they want to update the database. If so, you call the UpdateDatabase() method and you’re ready to go.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a Win32 DLL library that can be redistributed. I am using
I am writing a library which uses a few functions from the windows user32.dll
I'm writing a plugin (dll file), and I'm creating a WinForm as its interface/dialog.
I'm writing a DLL wrapper for my C++ library, to be called from C#.
I am writing a short batch file to prepare a control library DLL with
I am writing a DLL with mixed C/C++ code. I want to specify the
I am writing a cross platform shared library ( .so in linux and .dll
I'm writing a C/C++ DLL and want to export certain functions which I've done
I'm writing a dll library in Delphi with multiple threads created by it. Let
I'm writing a DLL library that interfaces to a USB device using winusb in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.