Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

problem with

$
0
0
how to make cross-theard calls to windows forms control ?
my code is
[code]
Imports System.Threading
Public Class Form3
Public UseTherad As New Thread(AddressOf fillcombo)

Private Sub fillcombo()
Dim i As Int64 = 0
Do While i < 100000
Me.combofill.Items.Add(i)
i += 1
Loop
End Sub

Private Sub Form3_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
UseTherad.Abort()
UseTherad.Join()
End Sub
Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
UseTherad.Start()
End Sub
End Class
[\code]

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>