• Advertisement
Sign in to follow this  

Drawing habla VB

This topic is 4610 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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 :)

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement