Question about Strings, Integers, and Pictures...
*I know, I am probably asking an easy question*
You know how there are strings and integers? I don't know what those are called, but I am asking something about them.
Is there a picture one for that group? (You can set a variable as a string, and integer; what i am asking is if you can set it as a picture)
Thanks
Re: Question about Strings, Integers, and Pictures...
When you declare a variable you specify it's type and you can then assign values/objects of that type to the variable. String is a class. Integer is a structure. Form, Button, TextBox are all classes too. Double, Date and Boolean are all structures too. It depends on the sort of application you're building as to what type you would use to refer to a picture but, most likely, you'll be creating a Windows Forms application. In that case, you would most likely use the Image class to represent a picture, so you can declare a variable of type Image. One common way to create an Image object is from a file like this:
Code:
Dim myImage As Image = Image.FromFile(filePath)