E
eBob.com
I know that this must be a really dumb question but I just can't find an
answer.
I want to associate some information with a RichTextBox. The Tag property
seems to be the intended way to "hang" some additional information on a
Control. I've created a structure, rtbAuxInfo, for the information. I
think that I have found the right syntax for assigning a pointer to the
structure to the Tag property of the RichTextBox, but I can't figure out how
to then assign a value to one of the fields of the structure.
' rtb1 is the RichTextBox
rtb1.Tag = New rtbAuxInfo ' at least this syntax seems OK
' now I want to set the URL field of the rtbAuxInfo structure ...
rtb1.Tag.URL = url ' doesn't work but I think that it shows what I am
trying to accomplish
CType(rtb1.Tag, rtbAuxInfo).URL = url ' doesn't work either
I'd sure appreciate it if someone could help me with this.
Thanks, Bob
answer.
I want to associate some information with a RichTextBox. The Tag property
seems to be the intended way to "hang" some additional information on a
Control. I've created a structure, rtbAuxInfo, for the information. I
think that I have found the right syntax for assigning a pointer to the
structure to the Tag property of the RichTextBox, but I can't figure out how
to then assign a value to one of the fields of the structure.
' rtb1 is the RichTextBox
rtb1.Tag = New rtbAuxInfo ' at least this syntax seems OK
' now I want to set the URL field of the rtbAuxInfo structure ...
rtb1.Tag.URL = url ' doesn't work but I think that it shows what I am
trying to accomplish
CType(rtb1.Tag, rtbAuxInfo).URL = url ' doesn't work either
I'd sure appreciate it if someone could help me with this.
Thanks, Bob