User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 423,554 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,776 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our VB.NET advertiser: Programming Forums
Views: 66904 | Replies: 2
Reply
Join Date: Dec 2004
Posts: 3
Reputation: darrindarrinnet is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
darrindarrinnet darrindarrinnet is offline Offline
Newbie Poster

DoEvents VB .NET Equivalent

  #1  
Dec 5th, 2004
I have written a small application and when the form open a new file, etc. the information is not posted to the screen until after the file processing has completed. I would like to display information as it is found. VB 6 used to use the DoEvents fundtion to force the system to display information but there does not seem to be an equivalent in VB .NET.

Also when the open file dialog is displayed and the file is selected the main form does not update until the process of openning the file has completed. This means you get pieces of the open file dialog screen distorting the main form until this open file proceesing has completed.

Does anyone have any suggestions foe each of these problems?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Posts: 3
Reputation: darrindarrinnet is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
darrindarrinnet darrindarrinnet is offline Offline
Newbie Poster

Solution Re: DoEvents VB .NET Equivalent

  #2  
Dec 6th, 2004
I actually found the answer on-line:

Application.DoEvents()

Not surprisingly, it's pretty similar to the old way of doing it!!!
:o
Reply With Quote  
Join Date: Jan 2008
Posts: 1
Reputation: oxe74jb is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
oxe74jb oxe74jb is offline Offline
Newbie Poster

Question Re: DoEvents VB .NET Equivalent

  #3  
Jan 11th, 2008
I'm using Visual Studio 7 VB.NET and it does not recognize application.doevents() method. The application object is derived from the system.windows.forms collection. VB.NET is using the System.Web.UI.WebControls collection to do most of its work when an aspx application is created.

The application object is recognized but the doevents method is not. So what is the answer? How can you refresh the display while executing code in the dll?
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb VB.NET Marketplace
Currently Active Users Viewing This Thread: 2 (0 members and 2 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the VB.NET Forum

All times are GMT -4. The time now is 6:19 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC