I am trying to make a rythmn game in visual basic that adds pictureboxes to a form every time the elapsed event of a system timer is raised. I have a separate sub which adds the picturebox to the form, and when I run the code, that sub is executed every time, including the code which adds the pictureboxes to the form, but the pictureboxes don't appear on the form. This was working fine when I used the normal timer component in the toolbox, but not with the systems.timers.timer. I think this might be because the timer is on a different thread, but I don't have any errors or warnings.
I have to use a system timer (I think) in order to have it more in sync with the music. The timer interval is set to 94ms for my test song, but will change depending on song bpm.