Drawing habla VB

Started by
2 comments, last by K-Zodron 18 years, 9 months ago
http://www.nomorepasting.com/paste.php?pasteID=43867 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ There's my current code, but it doesn't draw anything in the picture box! :< Why, why, WHY? Tell me or I die :( Thanks in advance :)
Advertisement
My VB is a bit rusty, but you could try refreshing the picturebox after painting. There should be a function names Refresh, Update or something similar.

Edit: After checking with MSDN I'm pretty sure you need to call Refresh after your drawing code. And for the love of all code, learn to use for-loops.
I think it depends on whether the picture box has auto redraw set to true or false.

If it is set to false you have to keep updating it or it will just disappear.

If it is set to true you don't have to keep updating it but you need to call Refresh() every time you change something.

Im not sure on the above and Im not sure if i described the settings the wron way round but thats what i remember.

hope this helps.
Thanks for the replies, got to tell about this to my friend who actually codes the VB thing (I don't know much vb :P)

This topic is closed to new replies.

Advertisement