MapPoint Forums

MapForums

Community of MapPoint and Bing Maps Users and Developers




Fill the shapes with colors problem

This is a discussion on Fill the shapes with colors problem within the MapPoint Desktop 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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint Desktop Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-20-2004
Junior Member
Yellow Belt
 
Join Date: Jul 2004
Posts: 14
Fill the shapes with colors problem

HI
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 09-20-2004
Winwaed's Avatar
Mapping-Tools.com
Black Belt
 
Join Date: Feb 2004
Posts: 1,345
Blog Entries: 33
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
See the Geoweb Guru for online mapping
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 09-28-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
does c# understand vb6 colors? If it does, then show me where!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 09-28-2004
Winwaed's Avatar
Mapping-Tools.com
Black Belt
 
Join Date: Feb 2004
Posts: 1,345
Blog Entries: 33
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
See the Geoweb Guru for online mapping
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 09-28-2004
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 3,498
Blog Entries: 3
Here's a list of color contants, hope this helps:
http://msdn.microsoft.com/library/de...rconstants.asp

Eric
__________________
~ Now taking orders for MapPoint 2010 ~
~~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
colors, fill, problem, shapes


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Fill a shape with a pattern? sgl MapPoint Desktop Discussion 0 04-27-2006 09:17 AM
I need to select from more than eight colors BobFromBoston MapPoint Desktop Discussion 2 03-01-2006 05:58 PM
Thematic theme colors bcimapr MapPoint Desktop Discussion 0 09-09-2003 04:47 PM
Weird problem with MapPoint shapes and Combo Boxes Anonymous MapPoint Desktop Discussion 6 03-24-2003 05:34 AM
Is there anyway that I can change the colors of ma.... Anonymous MapPoint Desktop Discussion 1 12-13-2001 12:15 PM


All times are GMT -5. The time now is 06:04 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
MP2K Magazine
Visitor Map



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67