Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / September 2004

Tip: Looking for answers? Try searching our database.

Properly Using Invalidate On Form Resize

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alex Glass - 09 Sep 2004 06:32 GMT
When my form resizes the entire window needs to be to  be invalidated.
However, invalidating the entire form results in an ugly blinking effect.  I
would imagine there is a simple solution to this but searching the Net I
couldn't find anything relating to this issue.

Any ideas or links to more information would be greatly appreciated

-Alex Glass
Herfried K. Wagner [MVP] - 09 Sep 2004 12:51 GMT
* "Alex Glass" <force010@hotmail.com> scripsit:
> When my form resizes the entire window needs to be to  be invalidated.
> However, invalidating the entire form results in an ugly blinking effect.  I
> would imagine there is a simple solution to this but searching the Net I
> couldn't find anything relating to this issue.

What do you want to do?  Preventing the from from invalidating?

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/

Alex Glass - 09 Sep 2004 16:15 GMT
I want to invalidate the form, but when the user is dragging at the side of
the window, the invalidate function gets called multiple times in a short
timeframe and this causes a nasty blinking effect.

Heres the resize function:
Private Sub DrawTest_Resize(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.Resize

   ' Code To Redraw Window Goes Here

   ' Force a Window repaint

   Invalidate()

End If

> * "Alex Glass" <force010@hotmail.com> scripsit:
> > When my form resizes the entire window needs to be to  be invalidated.
[quoted text clipped - 3 lines]
>
> What do you want to do?  Preventing the from from invalidating?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.