C
Casey
I have a custom control that allows user to place rtf content in it. The
custom control has a private member (RichTextBox). I have a code that
actually works:
MyRTFControl myRtf;
MemberInfo[] minfo = typeof(MyRTFControl).GetMember("richTextBox",
BindingFlags.FlattenHierarchy |
BindingFlags.IgnoreCase |
BindingFlags.Instance |
BindingFlags.NonPublic);
My question is how do I use minfo above to set some of the properties of
richTextBox ?
custom control has a private member (RichTextBox). I have a code that
actually works:
MyRTFControl myRtf;
MemberInfo[] minfo = typeof(MyRTFControl).GetMember("richTextBox",
BindingFlags.FlattenHierarchy |
BindingFlags.IgnoreCase |
BindingFlags.Instance |
BindingFlags.NonPublic);
My question is how do I use minfo above to set some of the properties of
richTextBox ?