i'm struggling with enums
Private Enum sizeMode
AutoSize = 2
CenterImage = 3
Normal = 0
StretchImage = 1
Zoom = 4
End Enum
here i'm trying to cast a string to a pictureboxsizemode:
PictureBox1.SizeMode = DirectCast(DirectCast(fields(4), sizeMode), PictureBoxSizeMode)
what am i doing wrong?