Textbox doesn't get updated while threading

后端 未结 3 635
囚心锁ツ
囚心锁ツ 2021-01-24 07:52

Here is a sub code inside a module named \"Blahing\":

    Sub BlahBlah(ByVal Count As Long)
        For i As Long = 0 To Count
            frmBlaher.txtBlah.Appe         


        
3条回答
  •  伪装坚强ぢ
    2021-01-24 08:22

    Take a look at the MSDN site, which will give you everything you need. You especially need to take notice of the SetText method and its use of the InvokeRequired and Invoke method, as well as its use of delegates.

    It may seem daunting at first, but once you get the hang of it, it becomes second nature.

    Here's a link http://msdn.microsoft.com/en-us/library/ms171728(v=vs.80).aspx

提交回复
热议问题