Hi Ive been trying to translate part of a code using this websites :
http://www.developerfusion.com/tools.../csharp-to-vb/
http://converter.telerik.com/
But I could not make it work specially this part :
Code:bw.DoWork += delegate(object sender2, DoWorkEventArgs e2) { _lastImageUploadDetails = uploader.UploadImage(txtFilePath.Text, resizeWidth, resizeHeight); };
This is the source I would like you to help me out :
So please if anybody here knows some c# and vbnet if he could do it I will really appreciate it.Code:bw.DoWork += delegate(object sender2, DoWorkEventArgs e2) { _lastImageUploadDetails = uploader.UploadImage(txtFilePath.Text, resizeWidth, resizeHeight); }; bw.RunWorkerAsync(); // when the background worker is finished, run this anonymous method which either updates // the details of the last uploaded image or displays an appropriate error message // if there were problems. bw.RunWorkerCompleted += delegate(object sender3, RunWorkerCompletedEventArgs e3) { try { if (e3.Error != null) { throw e3.Error; } UpdateLastUploadedImageDisplayDetails(_lastImageUploadDetails); txtInfo.Text = "Image Uploaded."; } catch (FileNotFoundException exp) { txtInfo.Text = exp.Message; } catch (XmlException exp) { txtInfo.Text = exp.Message; } };
Regards.




Reply With Quote
