> My first suggestion is to post the code in that paint event There may
> be a clue there.
That's the easy part - the entire code consists of:
Sub Paint(g as Graphics)
System.DebugLog("DisplayWnd Paint Event")
I have the Console open on a separate monitor, and without deactivating RB
or my application, I can watch the Paint Events pile up in the console
window...
Here's a typical bit of the console log, all events are put there through
System.DebugLog statements:
Launching
EnableMenuItems Event
DisplayWnd Constructor, total windows:0
DisplayWnd Open Event
DisplayWnd Paint Event
DisplayWnd Activate Event
EnableMenuItems Event
DisplayWnd Paint Event
DisplayWnd Paint Event
... Repeat DisplayWnd PaintEvent a few hundred times until I quit the
application...
DisplayWnd Paint Event
DisplayWnd Paint Event
CancelClose Event
Close Event
EnableMenuItems Event
That's it!
>Aside from a missing period in the above statewment, you should also
>be aware that putting a MsgBox or a Breakpoint in a paint event can
>also create problems.
Which is why I'm using DebugLog instead - I guess the next step is to remove
the controls from the form one by one until I hit whatever it is that's
causing this fun part.
BTW, this is RB 2005 r4.
- John
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>