Jooel said:

quote:

if I then put the slider into the main process, it does not steal focus but it hangs the main form.

Are you creating the slider form from within the slider() function? If so, remember to destroy it before exiting the function. When I was working on integrating my slider into your script I found that if I didn't I got all sorts of problems.