Application.Doevents problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • RSH

    #1

    Application.Doevents problem


    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.DoE vents
    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.Sql Client

    Imports System.Data.Ole Db

    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


  • Zoury

    #2
    Re: Application.Doe vents problem

    Hi !
    [color=blue]
    > works. but for some reason in this project when i use[/color]
    Application.DoE vents[color=blue]
    > i get the error... "DoEvents() Is not a member of DTS.Application "[/color]

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

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

    --
    Best Regards
    Yanick


    Comment

    Working...