|
-
Feb 22nd, 2013, 12:24 AM
#2
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)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|