Hello, i use to use types in vb6, but now i use structures, thoght i didn't use types very well, i knew what they did and i knew what to do when i needed them. Now i need them, but im playing around in vb.net trying to get myself ready to convert some major things to it. Can you see what im trying to do here, and help me fix it?
Public Structure Colors
Public Red As String = "12121G1"
Public Blue As String = "465C434"
Public Green As String = "871X032"
Public Yellow As String = "5B46873"
Public Black As String = "A465468"
Public Function NewFunction(ByVal Stuff As String, ByVal Colorx As Colors) As String
Colorx.Red = Stuff
Im trying to set it up so when i type under a form1.button1 the function like this: NewFunction("MyStringHere",colors.red) I want the user to see the list of colors after typing in the "colors." and then i want it to have that value when it executes the function.