Results 1 to 2 of 2

Thread: Vb .net Form Activated

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Posts
    1,374

    Vb .net Form Activated

    I'm a .NET newbie. I have noticed that when I put

    MessageBox.Show "Message"

    in a form's Form_Activated event, the event fires each time the message box is closed creating an infinite "loop". This is very different behaviour to VB6's Form_Activate event.

  2. #2
    Registered User
    Join Date
    Jul 2001
    Posts
    283
    form activated is called every time the form becomes in focus. when the messagebox appears, that gains focus and the form loses it. (the bar at the top of the form turns a lighter shade of grey or blue). see my recent thread for ways of solving the problem.
    http://www.vbforums.com/showthread.p...hreadid=277046

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width