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 7918477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T15:31:30+00:00 2026-06-03T15:31:30+00:00

I’m primarily an asp.NET MVC dev, but I’ve inherited a WinForms app to maintain

  • 0

I’m primarily an asp.NET MVC dev, but I’ve inherited a WinForms app to maintain and enhance. One of its features is a reporting window that is simply a WinForm with a BrowserPanel control into which a lot of angle brackets and text is injected. The report is simply a set of HTML tables.

My ‘problem’ is that the reports form with the BrowserPanel in it, by virtue of being a pop-up form, is modal. I think I understand why it’s best not to try to make it a non-modal WinForm, but it would be nice if the report window could be open while the user is in other parts of the app.

So when the user wants to see a report, instead of using this WebForm/BrowserPanel paradigm, could I just send all the report HTML to the user’s browser instead of using a BrowserPanel in a WinForm? Or is that just a really bad idea? If it’s an okay idea, how might I do something like that?

Many thanks for your time.

  • 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-03T15:31:31+00:00Added an answer on June 3, 2026 at 3:31 pm

    Without seeing the application working I’m not sure if its a good or bad idea – WebBrowser controls in Winform apps do have certain pro’s (and con’s). It is so simple to do, give it a go and see if its what the users want – even if its ends up as an program setting:

    //Save the HTML to a file
    string fileName = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\a.html";
    System.IO.StreamWriter file = new System.IO.StreamWriter(fileName);
    file.WriteLine(htmlContent);
    file.Close();
    
    //Open the HTML file in the default browser
    ProcessStartInfo start = new ProcessStartInfo();
    start.FileName = fileName;
    Process myProcess = Process.Start(start);
    

    The Form Property TopMost would allow you to have a non-modal window that is always on top.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I need to clean up various Word 'smart' characters in user input, including but
I have an MVC Razor view @{ ViewBag.Title = Index; var c = (char)146;

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.