Application.Doevents problem

  • Thread starter Thread starter RSH
  • Start date Start date
R

RSH

I created a new Windows Form project and I created a simple richtextbox to
write to and I am looping through a simple example but obviously the screen
isn't updated it only shows the first occurance.

I have used Application DoEvents in the past to update the screen which
works. but for some reason in this project when i use Application.DoEvents
i get the error... "DoEvents() Is not a member of DTS.Application"

How do I make the DoEvents Work in this scenerio?

Imports System.Data.SqlClient

Imports System.Data.OleDb

Imports System.Data

Imports System.IO

Imports DTS

Imports DTSCustTasks

Imports DTSPump



Public Class Form1

Inherits System.Windows.Forms.Form


<<< whole bunch of code >>>

end class
 
Hi !
works. but for some reason in this project when i use Application.DoEvents
i get the error... "DoEvents() Is not a member of DTS.Application"

The reason is that the compiler is looking for a DoEvents() method into the
DTS.Application class instead of the System.Windows.Forms.Application one.

You just need to be more specific about the Application class you're
refering too :
'***
System.Windows.Forms.Application.DoEvents()
'***
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top