Advanced Forum Search Results
-
I am not sure how I get 2 balls to bounce off each other.
I have 2 images and I can detect if the circles overlapp from 8 points around the bitmap circle.
I have tried simple direction and where 2 images hit but the amount of possibilities hasnt worked .
I need the mathematics to calculate the angle between 2 centres.
-
The player black rectangle moves at 5px and balls move at 1 px.
When the ball hits the black rectangle on the sides the ball moves up or down away out of the way and that jump can cause the ball to hit another ball and get stuck there.
Handling collision where the ball hits the player rectangle on the corners is the problem, as I am not ...
-
ok we are getting a little of the thread topic as all i wish to know is how in vb.net to update UI controls (image) from the background worker.
In c# you use a delegate in doWork event but in vb.net you use?
-
I know how to do it that way but I am learning how to open a lot of images using a thread.
After this I need a bigger example but first how do i use the backgroundworker for a small example.
-
this works but I am not sure if there can be problems with this method Private Sub bw_DoWork(ByVal sender As Object, ByVal e As DoWorkEventArgs)
For i = 1 To 10
System.Threading.Thread.Sleep(500)
bw.ReportProgress(i * 10)
a.X = i
a.Y = i
e.Result = ...
-
Hi,
I am getting a cross thread access error, when loading an image in a background thread
How do i fix this?
Private Sub bw_DoWork(ByVal sender As Object, ByVal e As DoWorkEventArgs)
Dim bw As BackgroundWorker = New BackgroundWorker
AddHandler bw.DoWork, AddressOf bw_DoWork
...
For i = 1 To ...
-
I will close this thread as I have another which is asking a similar question.
thanks for the help
-
// Poor way to do a waithandle. Don't do this in production code.
// Use the waithandle...that's what it's there for. I am keeping this simple. ...
-
Hi,
I read the webpage and found this as well.
I checked out http://www.silverlighthack.com/post/2008/09/07/Silverlight-MultiThreading-with-a-Computational-Process-(Counting-Primes).aspx
This does a simple sync of threads and claims you need to use a wait handle. this seems outdated but i can understand it.
What is the wait handle they ...
-
Hi,
I have this working with background thread.
What I need to know is how to run 2 threads that do this for example as i can do 1 thread in the background ok. How can i add 2 threads to do the same thing?
Dim bw As BackgroundWorker = New BackgroundWorker
...
AddHandler bt1.Click, AddressOf bt1_click
...