I use a opendialog control I can upload a picture my question is when a user click cancel instead of ok for opendialog it bombs out on this line pic = New Bitmap(OpenFileDialog1.Fil
eName) I am clueless i've tryed a few tricks don't want to use On error resume next if there were just a way to just have nothing happen when user clicks cancel
Public Sub uploadMLB()
Dim path As String = "c:\My Pictures\"
Dim pic As Image
pic = New Bitmap(OpenFileDialog1.FileName)
If Sportscode = "AA" Then
picnflplayer.Image = pic
picnflplayer.Visible = True
btnuploadpic.Text = "Save"