How do I set a custom pen style?

Hi

I have an app where I draw on a picture box, much like you would with MSPaint.  I want to set a custom pen style so that I can have the user draw what looks like roads, highways, and rivers.

Thanks,

Matt
LVL 1
MatthewLAsked:
Who is Participating?
 
DrDelphiCommented:
Take a look at this site:

http://rookscape.com/vbgaming/tutAT.php


Good luck!!
0
 
DrDelphiCommented:
Got another one you might like:

http://www.allapi.net/apilist/example.php?example=Draw%20Hotchpotch


Happy coding!!
0
 
MatthewLAuthor Commented:
Hi Dr. Delphi,

The first article looks like exactly what I want, except it is VB.net.  I am using VB6.  Do you know of a way to do it with 6?

Thanks,

Matt
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
DrDelphiCommented:
This will work for you in VB6 as well... it is just straight Windows32 API functions. There's nothing VB specific in it.


Good luck!!
0
 
MatthewLAuthor Commented:
Hi Dr. Delphi.

Perfect.  Thanks for the help!

Matt
0
 
DrDelphiCommented:
Cheers.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.