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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:25:41+00:00 2026-05-16T07:25:41+00:00

I tried to run it without a container form, but the DocumentCompleted event doesn’t

  • 0

I tried to run it without a container form, but the DocumentCompleted event doesn’t fire.

I tried to run it in a Form with opacity set to 0% but the process isn’t completely hidden, since it appears to the user when he uses Alt+Tab

I don’t mind if the proccess appears on the Task Manager though.

  • 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-05-16T07:25:42+00:00Added an answer on May 16, 2026 at 7:25 am

    To prevent the window from being shown, paste this code into your form:

        protected override void SetVisibleCore(bool value) {
            if (!this.IsHandleCreated) {
                CreateHandle();
                value = false;
            }
            base.SetVisibleCore(value);
        }
    

    Beware that the Load event won’t run until you explicitly make your form visible so move any code you’ve got there inside the if statement.

    Not getting the DocumentCompleted event to run is usually caused by not running a message loop (Application.Run). WebBrowser requires one, and a thread that’s marked with [STAThread], in order to fire its events. The message loop is very important for COM components.

    Is it also important to prevent the invisible form from stealing focus, with the code below:

    protected override bool ShowWithoutActivation
    {
        get { return true; } // prevents form creation from stealing focus
    }
    

    and

    form1.Enabled = false; // prevents inner controls from stealing focus
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried to run 2 JQuery-ajax at the same time, but it's seem always
I'm trying to run this query (I also tried it without specifying FIELDTERMINATOR and
I tried to run the following command and it says there is nothing to
I tried to run the directx samples from ..\Windows Mobile 6 SDK\Samples\PocketPC\CPP\win32\directx\d3dm\tutorials on a
I've tried to run the application in two situations: with SQL Server compact edition
I received the following error when I tried to run a C# WinForms application
I reloaded an old project, and tried to run it only to run into
I've written a Java applet . A user reports that he tried to run
I tried recently to use NAnt (beta 0.86.2962.0) to run some unit tests compiled
Error I tried this page to run on local, it is running perfectly fine

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.