JaedenRuiner
Well-known member
- Joined
- Aug 13, 2007
- Messages
- 340
- Programming Experience
- 10+
I remember in vb6 there were ways that when provided a "Control" you could request the value of a property via a name's repository. Does anything like that exist for vb.net?
Example:
In vb6 it was the .Properties() collection, but I haven't found that in .Net so far.
Thanks
Example:
VB.NET:
dim Txt as new TextBox
Txt.Text = "Hello Word"
GetProperty(txt, "Text")
public Function GetProperty(ctl as Control, PropName as String) as Object
dim obj as object = nothing
try
obj = ctl.[i]Properties[/i](PropName)
catch
end try
end function
In vb6 it was the .Properties() collection, but I haven't found that in .Net so far.
Thanks