Creating applications in visual studio, Map applications – Pitney Bowes MapXtreme User Manual

Page 46

Advertising
background image

Chapter 2: Getting Started

Creating Applications in Visual Studio

MapXtreme v7.1

46

Developer Guide

Machine Configuration File

Specifying redirection settings in the machine configuration file will cause all applications referencing
the assembly to use the upgraded version. Use this method of redirection carefully, since the
machine configuration file overrides settings in both the application configuration file and the
publisher's policy file.

Creating Applications in Visual Studio

With MapXtreme, it's easy to add a map to your application. Visual Basic.NET and Visual C# project
templates are provided that allow you to create simple mapping applications without writing any
code.

Sample desktop and web applications are also provided for you to review, experiment with and
adapt to your own situation. For a step-by-step tutorial on how to use these sample applications, see

Appendix A: How to Create and Deploy a MapXtreme Application

.

MapXtreme also ships with a collection of tutorial applications to help you understand how to include
useful mapping functionality in a web application. Each tutorial application is accompanied by
documentation that explains how the application was built. See Learning Resources from the Start >
Program menu for the documentation. The tutorial applications are included in a single Visual Studio
solution called MapXtremeTutorials.sln, located in the \Tutorials folder of your MapXtreme
installation (default location is c:\Program FIles\MapInfo\MapXtreme\7.x.x.\Tutorials, where 7.x.x is
the release version).

The following procedure outlines the steps to make a simple desktop mapping application. For steps
to create a web application, see

ASP.NET Web Applications

.

Map Applications

L

This example is specific to Visual Basic.NET. To create a Visual C# Map application
substitute Visual C# for Visual Basic in the following steps.

1. From the Visual Studio File menu, select New Project. The New Project dialog box appears.

2. In the Installed Templates frame of the New Project dialog box, under the Visual Basic folder,

choose Windows.

3. In the Templates frame of the New Project dialog box, select MapXtreme 7.x.x MapForm

Application.

Advertising