RE: WinForm Resize

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Sorry it didnt work I had already did that.... Guess I'm really stuck with
this issue
Anyone else has any Ideia?

"Mark R. Dawson" wrote:

> Hi Diogo,
> I do not know how to do the rubber band effect you want, but try to use
> dowuble buffering on your form and see if it offers any improvement of the
> visual redraw when you resize the form.
>
> You can use double buffering by adding the following to your form
> constructor, after the call to InitializeComponents:
>
> this.SetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint |
> ControlStyles.AllPaintingInWmPaint, true);
> this.UpdateStyles();
>
> Hope that helps
> Mark R. Dawson
>
> "Diogo Alves - Software Developer" wrote:
>
> > Hi, I have a really heavy view, it load a lot of objects, and I it most be
> > sizable.
> >
> > When I resize de window by dragging it's border it is very slow to rearrange
> > the objects in order to be all in the right place.
> >
> > I would like to know if it's possible to make a solution like we drag the
> > border, but in spite of the window move along the mouse, it would appear a
> > kind-of-rubberband and when I release that rubberband the window do the
> > resize to that position...
> >
> > I'm sorry for my bad english I hope that you have understood what I wanted...
> >
> > some code snippets would be usefull
> >
> > Thanks a Lot
.



Relevant Pages

  • RE: Threads.
    ... "Mark R. Dawson" wrote: ... > you can use Revents to indicate that all worker threads have finished ... > Here is an example of three worker threads being run by the main UI thread, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Finding "not used methods"
    ... Mark R. Dawson wrote: ... > Hi Anders, ... >> extensive but very poor documented business layer. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: int to string
    ... Mark R. Dawson wrote: ... This works because the IL code generated by the compiler is calling String.Concat(object, obect) ... which internally will call the ToString() method on both the object parameters, therefore returning a string from the i integer instance. ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Cannor capture DEL key in DataGrid event
    ... Many thanks to you for your kind assistance Mark. ... "Mark R. Dawson" wrote: ... > class MyDataGrid: DataGrid ... > protected override bool ProcessCmdKey(ref Message msg, Keys keyData) ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: XML Help
    ... Thanks alot Mark. ... Mark R. Dawson wrote: ... > Hi Baggy, ... >> I need help retrieving the value of node. ...
    (microsoft.public.dotnet.languages.csharp)