Yes, Michael, I'm talking about the mobile sketch pad component.
1. I get the image from the map.
2. I assigned image to picture box that I add to the sketch form.
At this point, I would so like to sketch on the image, but it's not letting me.
Private Sub tsbtnSketch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tsbtnSketch.Click
'
' --- Get the image of the current view of the map
'
Dim gCurrentbitmap As Bitmap = TryCast(Image.FromHbitmap(Map1.GetMapImage().Handle), Bitmap)
'
' --- Create new instance of Sketch Pad
'
Dim pSketch As New frmSketch
pSketch.pbScreenShot.Image = gCurrentbitmap
pSketch.pbScreenShot.SizeMode = PictureBoxSizeMode.StretchImage
'
' --- Invoke Sketch Pad
'
pSketch.ShowDialog()
'
End Sub
Public Class frmSketch
Private WithEvents m_MCSketch As MobileControls.MobileSkecthPad
Private Sub frmSketch_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
'
' --- Set variables of sketch pad
'
pnlSketch.Dock = DockStyle.Fill
pnlSketch.Visible = True
'
' --- Create the new sketch pad, pass in the panel to host it
'
m_MCSketch = New MobileControls.MobileSkecthPad(pnlSketch)
End Sub
End Class