W
wkaibigan
I have the following code
Private Sub PictureBox_DoubleClick(ByVal sender As System.Object,
ByVal e As System.EventArgs)
Try
Dim p As PictureBox = CType(sender, PictureBox)
Dim filetemp As String
filetemp = Replace(p.Tag, "Thumb", "jpg")
If Me.UseEditor = True Then
System.Diagnostics.Process.Start(filetemp)
Else
End If
_Image = Image.FromFile(filetemp)
Catch ex As Exception
Throw New Exception("PictureBox_DoubleClick", ex)
End Try
End Sub
Is there a way to emulate this functionality by single clicking the
image to select and and then click a button on the form to perform the
same action as the above code? If so, please could you provide sample
code.
Thanks.
Private Sub PictureBox_DoubleClick(ByVal sender As System.Object,
ByVal e As System.EventArgs)
Try
Dim p As PictureBox = CType(sender, PictureBox)
Dim filetemp As String
filetemp = Replace(p.Tag, "Thumb", "jpg")
If Me.UseEditor = True Then
System.Diagnostics.Process.Start(filetemp)
Else
End If
_Image = Image.FromFile(filetemp)
Catch ex As Exception
Throw New Exception("PictureBox_DoubleClick", ex)
End Try
End Sub
Is there a way to emulate this functionality by single clicking the
image to select and and then click a button on the form to perform the
same action as the above code? If so, please could you provide sample
code.
Thanks.