Hi All,
I am trying to figure out how to get an object's Form Name or Text value.
If I have a ListView object called LV1, I want it's Parent Name/Text.
Using the Parent Object will not do because the ListView may be contained
within other objects such as Panels, Groups, or Tab Objects.
Any ideas would be appreciated,
John.
Tim Wilson - 23 Sep 2004 17:36 GMT
What about using the TopLevelControl property?
[C#]
this.listView1.TopLevelControl.Text

Signature
Tim Wilson
.Net Compact Framework MVP
<Feedback>
Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
</Feedback>
> Hi All,
> I am trying to figure out how to get an object's Form Name or Text value.
[quoted text clipped - 5 lines]
> Any ideas would be appreciated,
> John.
Imran Koradia - 23 Sep 2004 19:08 GMT
use the LV1.FindForm( ) method (inherited from Control.FindForm( )) - this
returns an instance of the form the control is on. From that, you'll get all
you want regarding the form - name, text, etc
Imran.
> Hi All,
> I am trying to figure out how to get an object's Form Name or Text value.
[quoted text clipped - 5 lines]
> Any ideas would be appreciated,
> John.