Thanks for replying Phil, I will try to provide som code here (the pictureBox is names picChart) :
Originally Posted by Phil Weber
So far so good, this displays as it should. Then to load the map symbols it uses
Private Sub draw_map()
Dim vsImage As Image
vsImage = System.Drawing.Image.FromFile(vsPath & "simple.bmp")
picChart.Image = vsImage
This is only a part of the code where it draws the buoy.gif onto the map.
Private Sub draw_objects()
Dim drawSymbol As System.Drawing.Graphics
drawSymbol = picChart.CreateGraphics
objImage = System.Drawing.Image.FromFile("C:\bla bla bla\images\buoy.gif")
drawSymbol.DrawImage(objImage, xCoord - 5, yCoord - 5, 10, 10)
(The xCoord and yCoord are calculated from Latitude/Longitude values in the objects.txt file)
Then the final part is
My understanding is that using the _Paint will replace the AutoRedraw previosly used in VB6.
Private Sub picChart_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles picChart.Paint
I've also tried running the draw_map and draw_object on the form Load but that will only show the objects loading once and then clear them. At least this way keeps them flashing on the screen so I can see them
Please let me know if you need any more code, I'm not really sure what I should be showing here.