Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forcing a refresh to be done
Message
From
19/12/2005 16:38:56
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Forcing a refresh to be done
Miscellaneous
Thread ID:
01079341
Message ID:
01079341
Views:
51
I have the following code which I use to start some monitoring process:
    ' Start the monitoring
    Private Sub StartMonitoring()
        Dim llLogged As Boolean
        Dim loDataProvider As Framework.Data = New Framework.Data

        If Button10.Text = "Start monitoring" Then

            ' Change to processing mode
            WebServiceStatus.Text = "Attempting to log in..."
            WebServiceImage.Image = ImageList.Images(2)

            ' Web service login
            loWebService.CookieContainer = New System.Net.CookieContainer
            llLogged = loWebService.Login(lcUsername, lcPassword)
When it does, I show a status text as well as changing the color of a flag to blue. In this case, it is represented by ImageList.Images(2). However, despite the fact that the text is updated on the form, because I have a call to a Web Service method, this doesn't allow the time for the image to be refreshed. The only way I can see the updated image is if I add a messagebox right after the line where there is ImageList.Images(2). How can I force the refresh of the image to be immediate?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform