MapWindow Home
Search MapWindow.org


  • Home
    • Download
    • Why MW
    • FAQ
    • Contact
  • Products
    • MapWindow
    • ActiveX
    • Plug-ins
  • Software Dev
    • Sample Code
    • Scripts
    • Source
    • Bugs
    • Support
    • Languages
  • Site Tools
    • Forums
    • Tutorials
    • Mailing Lists
    • Team
    • Site Stats
    • Links
  • Get Stuff
    • Buy a CD
    • Buy a T-Shirt
    • MW Book
    • ActiveX Book
    • Donate
    • Buy Support
  • Documentation
    • MWGIS App. User Guide
    • GISTools User Guide
    • MW Plug-ins Dev. Guide
    • MWGIS ActiveX Dev. Guide
    • MWGeoProc Dev. Guide

MapWinGIS:AxMap BackColor

From MapWindow GIS

Jump to: navigation, search

BackColor

Gets or sets the background color of the map. (When using VB.NET the color is represented as a System.Drawing.Color. When using VB 6 the color can be an OLE_COLOR or an integer representation of an RGB value.)


VB.NET Usage

Property BackColor() As System.Drawing.Color

            Parameters

ReturnValue

The back color of the map returned as a System.Drawing.Color object.

Sample Code

    Private Sub myBackColor()
        Dim col As System.Drawing.Color
        'Get the backcolor of the map
        col = Map1.BackColor
        'Set the backcolor of the map
        Map1.BackColor = System.Drawing.Color.Beige
    End Sub
  

VB 6 Usage
Property BackColor() As OLE_COLOR
            Parameters

ReturnValue

The back color of the map as an OLE_COLOR.

Sample Code

    Private Sub myBackColor()
        Dim col As OLE_COLOR
        'Get the backcolor of the map
        col = Map1.BackColor
        'Set the backcolor of the map
        Map1.BackColor = RGB(255, 0, 0)
    End Sub

Retrieved from "http://www.mapwindow.org/wiki/index.php/MapWinGIS:AxMap_BackColor"
Views
  • Page
  • Discussion
  • View source
  • History
Personal tools
  • Log in / create account
  • What links here
  • Related changes
  • Upload file
  • Special pages
  • Printable version
  • Permanent link

Geospatial Software Lab

Copyright © 2008 - MapWindow Open Source Team
( last updated: December 03 2008.)
Home | Donate | Download | MapWindow GIS Desktop | MapWinGIS.ocx | Plug-ins | Contact | Lists | Bugs | Sample Code | Documentation
Code Repository | Open Source License | Discussion Forum | Wiki | Join the Team | Site Statistics | Links