Link to home
Start Free TrialLog in
Avatar of MatthewL
MatthewL

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of DrDelphi
DrDelphi

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of DrDelphi
DrDelphi

Got another one you might like:

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


Happy coding!!
Avatar of MatthewL

ASKER

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
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!!
Hi Dr. Delphi.

Perfect.  Thanks for the help!

Matt
Cheers.