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 - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -