|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
repainting problemHello all,
I have many buttons on a form and at the bottom of the form is a grid that behaves as though it is 'retractable' - at various times during the life of the app, the grid becomes taller and conceals the many buttons below it. That transition is fine. The problem is that when the grid retracts back down to the bottom portion of the form, to reveal the many buttons underneath it, the repainting is slow and ugly. Is there a way to manipulate the painting of the form so that this transition is more attractive? Thank so much, Jesse Try calling the Form's Update() method.
Show quoteHide quote "Jesse Aufiero" <jaufi***@moaboil.com> wrote in message news:uc0m8L8PFHA.4024@TK2MSFTNGP10.phx.gbl... > Hello all, > > I have many buttons on a form and at the bottom of the form is a grid that > behaves as though it is 'retractable' - at various times during the life > of the app, the grid becomes taller and conceals the many buttons below > it. That transition is fine. > > The problem is that when the grid retracts back down to the bottom portion > of the form, to reveal the many buttons underneath it, the repainting is > slow and ugly. > > Is there a way to manipulate the painting of the form so that this > transition is more attractive? > > Thank so much, > Jesse > hmmm, is there a way to prevent the repainting till the end, and then update
the form all at once? I HAVE to think that if you can do this in Access VBA (docmd.echo false.... docmd.echo true), that you can do it in vb.net. What I'm getting by using me.update is the same result. I can literally see the buttons form on the page one at a time. Thank you. Show quoteHide quote "Beth Massi [Architect MVP]" <bma***@comcast.net> wrote in message news:e0vr8V8PFHA.1236@TK2MSFTNGP14.phx.gbl... > Try calling the Form's Update() method. > > "Jesse Aufiero" <jaufi***@moaboil.com> wrote in message > news:uc0m8L8PFHA.4024@TK2MSFTNGP10.phx.gbl... >> Hello all, >> >> I have many buttons on a form and at the bottom of the form is a grid >> that behaves as though it is 'retractable' - at various times during the >> life of the app, the grid becomes taller and conceals the many buttons >> below it. That transition is fine. >> >> The problem is that when the grid retracts back down to the bottom >> portion of the form, to reveal the many buttons underneath it, the >> repainting is slow and ugly. >> >> Is there a way to manipulate the painting of the form so that this >> transition is more attractive? >> >> Thank so much, >> Jesse >> > > You might check out double buffering!
Show quoteHide quote "Jesse Aufiero" wrote: > hmmm, is there a way to prevent the repainting till the end, and then update > the form all at once? I HAVE to think that if you can do this in Access VBA > (docmd.echo false.... docmd.echo true), that you can do it in vb.net. > > What I'm getting by using me.update is the same result. I can literally see > the buttons form on the page one at a time. > > Thank you. > > > "Beth Massi [Architect MVP]" <bma***@comcast.net> wrote in message > news:e0vr8V8PFHA.1236@TK2MSFTNGP14.phx.gbl... > > Try calling the Form's Update() method. > > > > "Jesse Aufiero" <jaufi***@moaboil.com> wrote in message > > news:uc0m8L8PFHA.4024@TK2MSFTNGP10.phx.gbl... > >> Hello all, > >> > >> I have many buttons on a form and at the bottom of the form is a grid > >> that behaves as though it is 'retractable' - at various times during the > >> life of the app, the grid becomes taller and conceals the many buttons > >> below it. That transition is fine. > >> > >> The problem is that when the grid retracts back down to the bottom > >> portion of the form, to reveal the many buttons underneath it, the > >> repainting is slow and ugly. > >> > >> Is there a way to manipulate the painting of the form so that this > >> transition is more attractive? > >> > >> Thank so much, > >> Jesse > >> > > > > > > > Hi,
In the forms new event enable double buffering. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformscontrolclasssetstyletopic.asp Ken ---------------- "Jesse Aufiero" <jaufi***@moaboil.com> wrote in message I have many buttons on a form and at the bottom of the form is a grid thatnews:uc0m8L8PFHA.4024@TK2MSFTNGP10.phx.gbl... Hello all, behaves as though it is 'retractable' - at various times during the life of the app, the grid becomes taller and conceals the many buttons below it. That transition is fine. The problem is that when the grid retracts back down to the bottom portion of the form, to reveal the many buttons underneath it, the repainting is slow and ugly. Is there a way to manipulate the painting of the form so that this transition is more attractive? Thank so much, Jesse Jesse,
Why don't you set the buttons above it (and use a toolbar for that)? Just a thought, Cor
Binding an Array to a Combo Box
SqlDataReader accessed only by field ordinals? Singleton Pattern for Database Access --- Leave Open or Close Connection XmlTextReader not getting all Elements "Add Reference" hosed--doesn't display the dialog in VS.NET Combobox and DataSource PDF to Picturebox Newbie: substrings VB.net Datagrid Parent Row datagrid woes |
|||||||||||||||||||||||