Hi everyone,
I have a form that is programmatically attached to my glue i a way like you can see
below.
This works fine. The glued window moves along with the "parent" one.
But what i try to move the glued window itself with the mouse, it produces some awful
flicker, although it stayes at its place.
So how can i prevent this?
Best regards
alois
--snip
// Don�t worry about initialization of some variables....
// it�s just a snippet
public Constructor()
{
LocationChanged += new System.EventHandler(this.LocChange);
Resize += new System.EventHandler(this.LocChange);
gluedwindow.Resize += new System.EventHandler(this.LocChange);
gluedwindow.LocationChanged += new System.EventHandler(this.LocChange);
}
[...]
private void LocChange(object sender,System.EventArgs e)
{
if (gluedwindow!=null)
{
gluedwindow.Left = this.Right + 1;
gluedwindow.Top = this.Top;
System.Drawing.Size gs = gluedwindow.Size;
gs.Height = this.Size.Height;
gluedwindow.Size = gs;
}
}
---snap
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.