Community of VE/MapPoint Users and Developers
This is a discussion on Fill the shapes with colors problem within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; HI i am building my application in C# , i created Mapppoint shapes now i need to fill those shapes ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Fill the shapes with colors problem i am building my application in C# , i created Mapppoint shapes now i need to fill those shapes with yellow color. but when i say this MyShape = oMap.Shapes.AddLine(objLoc1,objLoc2); MyShpe.Fill.ForeColor = Color.Red; then error comes that "Can not convert implicitly System.drawing.color to int. please help me. |
| ||||
|
MapPoint's colors are specified using a different object type. Try: MyShpe.Fill.ForeColor = vbRed; or vbBlue, vbYellow, etc. See the MapPoint programming documentation for further details. Richard
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009 |
| ||||
|
Oh I'm sorry! I misread your original post and was thinking that you were using VB! D'Oh! RB
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009 |
| ||||
|
Here's a list of color contants, hope this helps: http://msdn.microsoft.com/library/de...rconstants.asp Eric
__________________ |
![]() |
| Tags |
| colors, fill, problem, shapes |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Fill a shape with a pattern? | sgl | MapPoint 2006/2009 Discussion | 0 | 04-27-2006 10:17 AM |
| I need to select from more than eight colors | BobFromBoston | MapPoint 2006/2009 Discussion | 2 | 03-01-2006 06:58 PM |
| Thematic theme colors | bcimapr | MapPoint 2006/2009 Discussion | 0 | 09-09-2003 05:47 PM |
| Weird problem with MapPoint shapes and Combo Boxes | Anonymous | MapPoint 2006/2009 Discussion | 6 | 03-24-2003 06:34 AM |
| Is there anyway that I can change the colors of ma.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 12-13-2001 01:15 PM |