ThisForm.This doesn't really make sense. ThisForm points to the current form, so, ThisForm.This is (kind of) ThisForm, too. I don't know why it works in the first case.
Probably the best way to reference this would be: ThisForm.TabName
Vlad
>I have created a new class that is based on control. Within this class I have a textbox and a listbox. I gave the container a new property also. The listbox.rowsource references this new property: ie. list1.rowsource = thisform.this.tabname.
>
>And that part works.
>
>
>I also want the textbox's controlsource property to reference the control's new property: ie.
>text1.controlsource = thisform.this.tabname.
>
>But with that it bombs out... the error I recieve is 'Unknown member THIS. Unbinding object text1'
>
>Why would it work with the listbox and not the textbox?
>
>I have also tried: text1.controlsource = this.tabname
>
>I recieved: "Property TABNAME is not found. Unbinding object text1"
>
>Thanx,
>
>
>
>Michael Mead
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only