Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

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
0
MatthewL
Asked:
MatthewL
  • 4
  • 2
1 Solution
 
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now