Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / August 2005

Tip: Looking for answers? Try searching our database.

Bug in Framework: Activate Event

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Axel Dahmen - 21 Jul 2005 02:03 GMT
Hi,

I've noticed an error in the Activate event of .NET Framework 1.0/1.1: When
a .NET program starts but the window is opened behind other windows and thus
is NOT activated, the Activate event still is fired. So the program can not
recognize if it is active or not.

Can someone reproduce this behaviour? Or am I missing something?

TIA,
Axel Dahmen

PS: To have my test program start behind other windows, I've simulated
program loading by delaying form load:

 [STAThread]
 static void Main()
 {
  Thread.Sleep(3000);
  Application.Run(new Form1());
 }

 private void Form1_Activated(object sender, System.EventArgs e)
 {
  lb.Items.Add("Activated");
 }
Axel Dahmen - 04 Aug 2005 17:25 GMT
I've filed this as bug #FDBK33723 into MSDN Product Feedback Center.

Microsoft has confirmed this to be a bug in 1.0 and 1.1. They won't fix it
for 2.0 as it would break existing programs.

Still this bug is serious. There is no workaround possible.

Their answer still leaves the main question open: How is a program supposed
to recognize that it *isn't* active?

IMHO, fixing this bug is more important than being afraid of breaking any
program. If the event doesn't fire correctly, then what purpose is it good
for anyway?

I'm disappointed... I can't believe there is something more important than
fixing known bugs... :(

--------------------
> Hi,
>
[quoted text clipped - 22 lines]
>    lb.Items.Add("Activated");
>   }

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.