Private Function LoadBitmap(ByVal filename As String) As Bitmap Dim bitmap As Bitmap = Nothing Try ' load bitmap bitmap = New Bitmap(filename) 'ERROR HERE Catch ex As Exception moLog.Write("Could not load image to Bitmap. Unsupported file format.", moMail, True) moLog.Write(ex.ToString.ToString, moMail, True) Return Nothing End Try
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.