Groups | Blog | Home
all groups > vb.net upgrade > november 2003 >

vb.net upgrade : Ambient.DisplayName


AlanDavis
11/26/2003 3:11:07 AM
Commonly my VB6 usercontrols use Ambient.DisplayName to
find their instance names on the parent form for default
labelling etc.

Can anyone tell me the VB.Net equivalent?

Thanks in advance.

Alan Davis
11/27/2003 6:00:33 AM
To answer my own message:

I scouted round and found that VB.Net overrides the
default name in its Generated code region. Remove this
line of code eg:
Me.Name = "MyControl"

and hey presto, use Me.Name.

Cheers

Alan

[quoted text, click to view]
AddThis Social Bookmark Button