Thread: Question Repeating Events
View Single Post
  #2 (permalink)  
Old 12-28-2008, 4:37 PM
JohnH's Avatar
JohnH JohnH is offline
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Dec 2005
Location: Norway
Age: 37
Posts: 10,322
Reputation: 1315
JohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond repute
Default

Why don't you use the Owner forms feature? Makes owned forms minimize/restore/close and overlay with the owner automatically.

Of curiosity I also checked Resize event when maximizing a form, and it does happen twice, but only once for WindowState Maximized. If you need to know that a regular resize event is not followed by a maximized/minimize/restore resize event you can use the ResizeBegin and ResizeEnd events, they don't occur for min/max/restore.
__________________
Reply With Quote