List Info

Thread: Drawline doesn't draw full line after resize. Help!




Drawline doesn't draw full line after resize. Help!
country flaguser name
United States
2007-10-06 14:21:02
Hi,

I have c# program with a splitContainer. In right pannel, I
have
placed a picturebox. All these controls are docked to fill.
In the
picture box I draw a line using drawline where the starting
x is 0,
and the ending x is the width of the picturebox.

When I resize the form, everything resizes with it, but when
I redraw
the line, I can't go beyond the width of the picturebox
before resize.

I have checked the values of the widths of the pannel,
picturebox, and
their clientsizes, and they all have the newly resized
values, but the
drawline insists on drawing only up to the width of the
picture before
resizing it.

Please, can you help?

Thank you

Mohamed Qasem


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "DotNetDevelopment, VB.NET, C# .NET,
ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting"
group.
To post to this group, send email to DotNetDevelopmentgooglegroups.com
To unsubscribe from this group, send email to
DotNetDevelopment-unsubscribegooglegroups.com
For more options, visit this group at
http:
//cm.megasolutions.net/forums/default.aspx
-~----------~----~----~----~------~----~------~--~---


Re: Drawline doesn't draw full line after resize. Help!
user name
2007-10-07 00:39:01
Just a stab in the dark here, but is anything funny going on in Repaint? Or perhaps an explicit call to Repaint is needed?

--Andrew


On 10/6/07, The Main Man < mqasemgmail.com">mqasemgmail.com> wrote:

Hi,

I have c# program with a splitContainer. In right pannel, I have
placed a picturebox. All these controls are docked to fill. In the
picture box I draw a line using drawline where the starting x is 0,
and the ending x is the width of the picturebox.

When I resize the form, everything resizes with it, but when I redraw
the line, I can't go beyond the width of the picturebox before resize.

I have checked the values of the widths of the pannel, picturebox, and
their clientsizes, and they all have the newly resized values, but the
drawline insists on drawing only up to the width of the picture before
resizing it.

Please, can you help?

Thank you

Mohamed Qasem

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting&quot; group.
To post to this group, send email to DotNetDevelopmentgooglegroups.com
To unsubscribe from this group, send email to DotNetDevelopment-unsubscribegooglegroups.com
For more options, visit this group at
http://cm.megasolutions.net/forums/default.aspx
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )