RE: Reading Object Properties in Code
- From: Kannan <Kannan@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 8 Sep 2009 06:06:04 -0700
If we do have the Tag and text properties set for the text box, we can get
the properties by using the following piece of code
foreach (Binding bind in btnGetFileList.DataBindings)
{
string prpName = bind.PropertyName;
}
Hope the above helps.
Kannan
"NormD" wrote:
We've done programming that will go through a form and read properties of.
objects on the form. But it doesn't work for all properties. For example,
for a TextBox (System.Windows.Forms.TextBox) there is an expandable property
for DataBindings. It has properties under it, Advanced, Tag, and Text. We
can't read these properties.
I can't believe all the properties of objects can't be accessed by code!
Any suggestions?
- Prev by Date: Re: Looping through files in a directory
- Next by Date: RE: bin folder vs references
- Previous by thread: Re: Looping through files in a directory
- Next by thread: RE: bin folder vs references
- Index(es):
Relevant Pages
|