Opening a new form using an event

csharp Sweden
  • 13 years ago
    I have a class that loops and listens to the registry and raises an event when the right things are written there.
    The main class that subscribes to that event tries to pop a new form with an alert message but the window just freezes and and it never closes as it should.
    When i use a button to test the function in the main class everything works fine. The new form pops and closes as it should but it wont work with an event.
    Any idea how I can achieve this?
    /Johan





Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“My definition of an expert in any field is a person who knows enough about what's really going on to be scared.” - P. J. Plauger