Getting allot closer, but I still cant get this line to convert correctly.
VB Code:
  1. gs.GradientMode = [Enum].Parse(GetType(GradientStyle), Trim(props(0)))
When I wrap it with the CType it tells me that the GradientStyle is undefined?
VB Code:
  1. gs.GradientMode = CType([Enum].Parse(GetType(GradientStyle), Trim(props(0))), GradientStyle)
What am I doing wrong?