Click here to Skip to main content
14,971,553 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: Control hide/show(should be post here, right?) Pin
Eddy Vluggen24-Apr-13 6:29
professionalEddy Vluggen24-Apr-13 6:29 
QuestionC# Winform controls not drawing Pin
Member 783446019-Apr-13 7:01
MemberMember 783446019-Apr-13 7:01 
AnswerRe: C# Winform controls not drawing Pin
Eddy Vluggen22-Apr-13 8:52
professionalEddy Vluggen22-Apr-13 8:52 
QuestionChanging BackColor for tabControl Pin
_katon_11-Apr-13 2:54
Member_katon_11-Apr-13 2:54 
AnswerRe: Changing BackColor for tabControl Pin
Alan N11-Apr-13 3:48
MemberAlan N11-Apr-13 3:48 
GeneralRe: Changing BackColor for tabControl Pin
_katon_11-Apr-13 4:29
Member_katon_11-Apr-13 4:29 
AnswerRe: Changing BackColor for tabControl Pin
Dave Kreskowiak11-Apr-13 5:02
mveDave Kreskowiak11-Apr-13 5:02 
QuestionHow to link drawings on on-line maps to the map Pin
Member 843537226-Mar-13 11:40
MemberMember 843537226-Mar-13 11:40 
I'm using Visual C# 2010 Express.
I've written code to display Provider maps on my form.
I can draw lines on the maps, and capture the latitude / longitude from the map.
My problem is that when I pan or zoom the map, my drawn line stays in one place; it doesn't move or resize with the map.
I'm using a gMap control to load the provider maps as below:
private void Form1_Load(object sender, EventArgs e)
        {
            // Initialize map:
            //gMapControl1.MapProvider = GMap.NET.MapProviders.BingMapProvider.Instance;
            gMapControl1.MapProvider = GMap.NET.MapProviders.ArcGIS_Topo_US_2D_MapProvider.Instance;
            GMap.NET.GMaps.Instance.Mode = GMap.NET.AccessMode.ServerOnly;
            gMapControl1.Position = new GMap.NET.PointLatLng(39.401389, -077.986111); //mrb
            gMapControl1.Zoom = 10;


I've created an Overlay for my form, and I'm drawing on the overlay as below:
private void graphicalOverlay1_Paint(object sender, PaintEventArgs e)
        {
            e.Graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
            Pen fl = new Pen(Color.Red, 3.0f);
            e.Graphics.DrawLine(fl, x_start, y_start, xx, yy);
 
        }


Perhaps I shouldn't be drawing on the Overlay. But I don't know how to just draw on the providers image.

Any direction to "lock" my drawn lines with the map would be appreciated.
Thanks
AW
AnswerRe: How to link drawings on on-line maps to the map Pin
Bernhard Hiller26-Mar-13 22:47
MemberBernhard Hiller26-Mar-13 22:47 
GeneralRe: How to link drawings on on-line maps to the map Pin
Member 843537227-Mar-13 0:35
MemberMember 843537227-Mar-13 0:35 
GeneralRe: How to link drawings on on-line maps to the map Pin
Member 843537227-Mar-13 1:53
MemberMember 843537227-Mar-13 1:53 
GeneralRe: How to link drawings on on-line maps to the map Pin
Bernhard Hiller27-Mar-13 22:18
MemberBernhard Hiller27-Mar-13 22:18 
QuestionNeed guidance for chat conversion UI area designing (win form c#) Pin
Tridip Bhattacharjee25-Mar-13 5:03
professionalTridip Bhattacharjee25-Mar-13 5:03 
AnswerRe: Need guidance for chat conversion UI area designing (win form c#) Pin
Eddy Vluggen25-Mar-13 8:18
professionalEddy Vluggen25-Mar-13 8:18 
GeneralRe: Need guidance for chat conversion UI area designing (win form c#) Pin
Tridip Bhattacharjee25-Mar-13 9:33
professionalTridip Bhattacharjee25-Mar-13 9:33 
GeneralRe: Need guidance for chat conversion UI area designing (win form c#) Pin
Eddy Vluggen25-Mar-13 9:39
professionalEddy Vluggen25-Mar-13 9:39 
QuestionSlow Graphics in Windows 8 Pin
Dr.Walt Fair, PE11-Mar-13 21:09
professionalDr.Walt Fair, PE11-Mar-13 21:09 
JokeRe: Slow Graphics in Windows 8 Pin
Maciej Los19-Apr-13 6:23
mveMaciej Los19-Apr-13 6:23 
GeneralRe: Slow Graphics in Windows 8 Pin
Dr.Walt Fair, PE19-Apr-13 7:24
professionalDr.Walt Fair, PE19-Apr-13 7:24 
AnswerRe: Slow Graphics in Windows 8 Pin
Maciej Los19-Apr-13 9:36
mveMaciej Los19-Apr-13 9:36 
GeneralRe: Slow Graphics in Windows 8 Pin
Dr.Walt Fair, PE20-Apr-13 22:08
professionalDr.Walt Fair, PE20-Apr-13 22:08 
QuestionHow to capture snap of any SDI windowForm including title bar Pin
Tridip Bhattacharjee11-Mar-13 8:20
professionalTridip Bhattacharjee11-Mar-13 8:20 
AnswerRe: How to capture snap of any SDI windowForm including title bar Pin
Richard MacCutchan12-Mar-13 2:08
mveRichard MacCutchan12-Mar-13 2:08 
GeneralRe: How to capture snap of any SDI windowForm including title bar Pin
Tridip Bhattacharjee13-Mar-13 8:29
professionalTridip Bhattacharjee13-Mar-13 8:29 
GeneralRe: How to capture snap of any SDI windowForm including title bar Pin
Richard MacCutchan13-Mar-13 22:31
mveRichard MacCutchan13-Mar-13 22:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.