MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Fill the shapes with colors problem

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #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
Red Belt
 
Join Date: Feb 2004
Posts: 899
Blog Entries: 10
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
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
Red Belt
 
Join Date: Feb 2004
Posts: 899
Blog Entries: 10
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
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: 2,482
Blog Entries: 1
Here's a list of color contants, hope this helps:
http://msdn.microsoft.com/library/de...rconstants.asp

Eric
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ 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 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


All times are GMT -5. The time now is 10:44 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
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