Missing Dialogs

Ron McCarthy 0 Reputation points
2023-02-17T20:20:22.79+00:00

I want to present a Font Dialog, Print Dialog, etc. to the end user. But those controls are NOT available in my application. They are available when I create a Windows Form Application Type. My current application that needs these controls is Class Library Type. Is it that they are NOT available to a WEB app?

Common Controls are all greyed out for my WEB application but active when used in a windows forms application. I click "Show All" to display all controls.

Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | Visual Studio | Setup
Developer technologies | VB
Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
Developer technologies | ASP.NET | Other
{count} votes

4 answers

Sort by: Most helpful
  1. Albert Kallal 5,591 Reputation points
    2023-02-19T00:59:09.0566667+00:00

    So, web land is quite different, since you are "beholden" to a browser. And that browser might be FireFox, Edge, or chrome.

    So, in effect, you can't just say pop a print dialog in code, since does that browser have that feature?

    Same goes for choosing a font. However, to be fair, unless you are editing some "rich text" box on a windows desktop form, I can't recall much having the user to "select" a font.

    However, you can most certainly allow users what is called a HTML editor.

    they look VERY much like the editor I am typing in this post to!!!

    So, I can for example choose some bold + italic text!

    or even say larger text.

    So, you can find/use adopt one of many HTML editors for this purpose if that is your goal.

    CKEDIT is really nice, and I am using a "older" one from the ajaxtoolkit.

    I thus am using this one from the ajaxtoolkit (free)

    User's image

    So, while you can't pop a "font" picker (the windows one, since we might not even be using a windows computer), you do have options in terms of controls for web based systems, but they will be web based ones.

    So, as noted, you are correct that windows controls can't be used in web land, since you are limited to that of a browser, and thus "many" things we take for granted in desktop land will not be available in web land.

    however, there are color pickers etc.

    So, from above, to pick a font color, I can click on that menu bar, and I now see/get this:

    User's image

    As noted, an example of such a editor in a browser? The VERY one we are using to type in this message and post here!!!

    0 comments No comments

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.