c# - Base class of all controls that has DataSource, DisplayMember and ValueMember properties -


i programming in c# winforms. want know, how can find controls has datasource property, displaymember , valuemember properties?

what controls base class? control class or what? want have method return "control" base object, has 3 datasource, displaymember , valuemamber properties.

so i'll can assign combobox or listbox return object. example:

public myreturntype getcontrol() {     //some code here      ...      return myreturntype; }  combobox = getcontrol(); listbox  b = getcontrol(); ... 

after assignment, both a , b controls, has desire datasourse, displaymember , valuemember properties.

usually derived base class listcontrol has 3 properties defined in base. can check if control of type listcontrol have 3 properties.

if want investigate such information press f12 or use right click , gotodefinition class , base classes , other information builtin types.


Comments

Popular posts from this blog

php - Extract Text from HTTP referer -

java - Callback from new thread to class from which thread was initiated -

Receive udp packets in android gstreamer -