winforms - How to expose DataBind in winfrom control c# -


i'm trying bind mybutton.enabeld bool lacated @ class when write mybutton.databinding error "mybutton not contain definition databinding "

how expose ? know possible , used once before

    var scriptlistboxselectedindexbinding = new binding("selectedindex", control_scripthandler.controlscriptiteratorhanlderagent, "scriptcounter", false, datasourceupdatemode.onpropertychanged);     scriptlistbox.databindings.add(scriptlistboxselectedindexbinding); 

what missing here ?


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

python - Django-cities exits with "killed" -

python - How to get a widget position inside it's layout in Kivy? -