Click here to Skip to main content
15,867,488 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: ListBox does not update when DataSource is changed Pin
rbsbscrp31-May-13 7:22
rbsbscrp31-May-13 7:22 
GeneralRe: ListBox does not update when DataSource is changed Pin
Eddy Vluggen31-May-13 7:30
professionalEddy Vluggen31-May-13 7:30 
GeneralRe: ListBox does not update when DataSource is changed Pin
rbsbscrp31-May-13 7:39
rbsbscrp31-May-13 7:39 
GeneralRe: ListBox does not update when DataSource is changed Pin
Eddy Vluggen31-May-13 8:32
professionalEddy Vluggen31-May-13 8:32 
GeneralRe: ListBox does not update when DataSource is changed Pin
TnTinMn6-Jun-13 9:08
TnTinMn6-Jun-13 9:08 
GeneralRe: ListBox does not update when DataSource is changed Pin
rbsbscrp6-Jun-13 12:38
rbsbscrp6-Jun-13 12:38 
GeneralRe: ListBox does not update when DataSource is changed Pin
TnTinMn6-Jun-13 13:26
TnTinMn6-Jun-13 13:26 
AnswerRe: ListBox does not update when DataSource is changed Pin
Chirag Baroliya R24-May-13 2:25
Chirag Baroliya R24-May-13 2:25 
GeneralRe: ListBox does not update when DataSource is changed Pin
rbsbscrp24-May-13 20:11
rbsbscrp24-May-13 20:11 
QuestionBinding a DataGridView column to a nullable property, using a ComboBox bound to a non-nullable property. Pin
Brady Kelly14-May-13 21:20
Brady Kelly14-May-13 21:20 
QuestionControl hide/show(should be post here, right?) Pin
kenmaMoon23-Apr-13 21:20
kenmaMoon23-Apr-13 21:20 
AnswerRe: Control hide/show(should be post here, right?) Pin
Richard MacCutchan23-Apr-13 21:57
mveRichard MacCutchan23-Apr-13 21:57 
GeneralRe: Control hide/show(should be post here, right?) Pin
kenmaMoon23-Apr-13 22:00
kenmaMoon23-Apr-13 22:00 
GeneralRe: Control hide/show(should be post here, right?) Pin
Richard MacCutchan23-Apr-13 22:42
mveRichard MacCutchan23-Apr-13 22:42 
AnswerRe: Control hide/show(should be post here, right?) Pin
Eddy Vluggen23-Apr-13 22:50
professionalEddy Vluggen23-Apr-13 22:50 
GeneralRe: Control hide/show(should be post here, right?) Pin
kenmaMoon23-Apr-13 22:55
kenmaMoon23-Apr-13 22:55 
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
Member 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
_katon_11-Apr-13 2:54 
AnswerRe: Changing BackColor for tabControl Pin
Alan N11-Apr-13 3:48
Alan N11-Apr-13 3:48 
GeneralRe: Changing BackColor for tabControl Pin
_katon_11-Apr-13 4:29
_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
Member 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:
C#
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:
C#
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
Bernhard Hiller26-Mar-13 22:47 

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.