I want to display the text like "Loading" in a label.
while I call a webservice method the can not be displayed even I set visible property to the label
But when I am not calling the web service means it work fine.
here is my code
Private Sub save_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
label1.text="Loading....."
Label1.Visible = True
Dim obj As New com.rem4ed.secure.rem4edsso_deskws //webservice
Dim result As String = sec_ws.ssologincheck("[email protected]", "test")
MsgBox(result )
Label1.Visible = False
If I put message box after the line "Label1.Visible = True" it work fine
How can I display this?
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Kirtan PatelPosted Dec 24, 2009, 6:21 AM
if you are Developing Windows Form Application then you Need to Use Threading so that you can change the Label Even
when Application is fetching data from Webservice .
run the Code for Calling Web Service in Separate Thread.and if you are Working with Asp.net application then you should use Update Panel.
if it helps you then please check "Do you like this answer" check box please :)