I've made a private sub that creates a graphic (using drawrectangle, string, line and stuff like that) inside a picturebox, so i wouldnt place it right on top of the form itself and also beeing able to move it around. I was aware that the graphic would disappear whenever you minimize or have windows on top it, but was under the impression that all i needed to do for it to stay there was to call the sub in the forms' paint event.
However, this doesnt seem to work very well and i keep getting my picturebox empty at times. I've tried using a timer to run the sub at a steady interval, and it works, but the graphic flickers due to the constant updating.
I'm an absolute newbie at this and would appreciate any help.
Thanks in advance.
However, this doesnt seem to work very well and i keep getting my picturebox empty at times. I've tried using a timer to run the sub at a steady interval, and it works, but the graphic flickers due to the constant updating.
I'm an absolute newbie at this and would appreciate any help.
Thanks in advance.
Comment