I'm working with the GDI+ and when I go to load an image it gives me the error
I have tried declaring tImage different types (i.e. Bitmap) and still nothing. What's really interesting about this is that if I step through the program line by line, it works just fine. What gives?
Here's my code:
VB Code:
Imports System.IO Imports System.Windows.Forms Imports System.Drawing Imports System.Drawing.Imaging ... Private tImage As Image Private Sub LoadImage(ByVal ImagePath as String) tImage = Image.FromFile(ImagePath) End Sub





Reply With Quote