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

  • Home
  • SEARCH
  • 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 8844625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:32:04+00:00 2026-06-14T11:32:04+00:00

Writing a Winforms application over .NET 4.0 (using VB2010). It has a single form,

  • 0

Writing a Winforms application over .NET 4.0 (using VB2010). It has a single form, including an ActiveX COM control asynchronously raising events. The events are handled by hook functions on form’s code-file. Application does NOT start any threads (except the main one, ofcourse).

Should I guard from event-handler reentrancy?
Could Event B‘s hook-function be called while Event A‘s hook-function is being executed?

{ Searching the web has raised several conflicting answers. I’m puzzled here… }

  • 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-14T11:32:06+00:00Added an answer on June 14, 2026 at 11:32 am

    It is not any different for ActiveX controls versus .NET controls. Whatever you do in the event A event handler that affects the control may certainly cause another event to be raised. Or event A may be raised again. Another event rarely causes trouble but the latter case usually causes this site’s name exception. And you fix it the same way, a bool field that prevents re-entry.

    The underlying mechanics are identical. An ActiveX control too can fire an event in a property setter. That doesn’t have anything to do with threading or a single threaded apartment.

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

Sidebar

Related Questions

I'm writing a winforms application in C# (.NET 4.0, using EntityFramework). I wanted to
I'm writing a VB.Net WinForms application that has multiple data girds on any given
I'm writing an industrial process control application to run on a PC, using .Net.
I'm writing a small business Winforms application in C#, .NET 4.0, using Entity Framework
I'm using this example project's XNA 4.0 form control in an application I'm writing:
I'm writing a new .Net 3.5 Winforms single user application and I'm not sure
I am writing a .NET WinForms application that needs to display a list of
I am writing a C# WinForms application that consumes a web service using WCF.
I'm planning on writing a medium-size WinForms application that I'll write in C#, .NET
I'm writing a test WinForms / C# / .NET 3.5 application for the system

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.