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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:13:40+00:00 2026-05-27T14:13:40+00:00

Just got a very mysterious error while coding a WPF-application in C#. I’ve got

  • 0

Just got a very mysterious error while coding a WPF-application in C#.

I’ve got an event in a custom User-Control, that shows a message box every time the text on a button is changed. When I edit the text on the button in XAML, the event fires – even without my application actually running.

When I tried to open a new WPF-window in the event, the app crashes with “Stackoverflow” – after that, VS (C# Express) crashed too and I wasn’t able to open my project until I changed the event and deleted all content in my Debug and Release folders.

Why is this event triggered?

  • 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-27T14:13:40+00:00Added an answer on May 27, 2026 at 2:13 pm

    A usercontrol runs inside Visual Studio.

    Basically Visual Studio loads the assembly containing the control and executes the control.

    This means that if your control shows a message box for some event that is executed at design time, then that message box will be shown in Visual Studio as well.

    To fix this, make sure your control doesn’t execute harmful or similar code when hosted in Visual Studio.

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

Sidebar

Related Questions

I just got this wordpress theme: http://meezio.pixelworkshop.fr/ Very nice, the problem is that since
I'm currently working on a very short project on Prolog, and just got stuck
I got this code from someone and it works very well, I just want
Just got a request from my boss for an application I'm working on. Basically
I just got Delphi 2009 and have previously read some articles about modifications that
This is very weird. I just got MonoDevelop (2.4.1) along with MonoTouch (3.2.2, evaluation
I just got floored by a command from my manager, saying that in our
This question I have asked before and just got answer that there is an
I just got done writing an Android Activity that allows other Activities to call
Since I just asked this question and got a very useful reply I wonder

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.