Solved

How do I set a custom pen style?

Posted on 2002-04-23
6
217 Views
Last Modified: 2011-10-03
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
Comment
Question by:MatthewL
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 6

Accepted Solution

by:
DrDelphi earned 300 total points
ID: 6963425
Take a look at this site:

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


Good luck!!
0
 
LVL 6

Expert Comment

by:DrDelphi
ID: 6963567
Got another one you might like:

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


Happy coding!!
0
 
LVL 1

Author Comment

by:MatthewL
ID: 6964624
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
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 
LVL 6

Expert Comment

by:DrDelphi
ID: 6965331
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
 
LVL 1

Author Comment

by:MatthewL
ID: 6982235
Hi Dr. Delphi.

Perfect.  Thanks for the help!

Matt
0
 
LVL 6

Expert Comment

by:DrDelphi
ID: 6982508
Cheers.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question