Sign in to follow this  
K-Zodron

Drawing habla VB

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this