Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 5 of 5

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

  1. #1
    vidyakulkarni is offline 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.

  2. #2
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60
    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

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    does c# understand vb6 colors? If it does, then show me where!

  4. #4
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60
    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

  5. #5
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    Here's a list of color contants, hope this helps:
    http://msdn.microsoft.com/library/de...rconstants.asp

    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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