Click here to Skip to main content
15,894,907 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
Hi i'm a noob to .NET developing and have a simple question, i've been stuck on this for a while and searched many forums first with no solution so i'm posting myself. In VB for excel i've used Screenupdating=false to disable the screen updating however now i'm creating a visual studio 2010 windows forms application and its not showing up as a property. Here is the code i've tried.

VB
Public Class
Public Sub Welcome_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Application.screenupdating = False
End Sub
End Class


And i get the error 'screenupdating' is not a member of 'system.windows.forms.application'.
Thanks.
Posted

1 solution

That's because screenupdating is only available in Office: it is not a part of .NET

Think about it: It is there to prevent massive file load operations swamping the screen with updates. Since .NET applications can do anything they like, it can't tell what is a massive file operation. Instead, it provides BeginUpdate and EndUpdate methods for individual controls such as TreeView to do much the same thing, but more accurately targeted.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900