c# - Does not contain definition for object -


it randomly encounters these errors, when don't mess @ all. says

"error 4 'application.form1' not contain definition 'combobox4_selectedindexchanged' , no extension method 'combobox4_selectedindexchanged' accepting first argument of type 'awesome_application.form1' found (are missing using directive or assembly reference?) c:\users\admin\documents\visual studio 2012\samples\application\awesome application\form1.designer.cs 223 81 awesome application

it had 10 occurrences of this, , has happened before. makes cannot @ form1.cs [design]. code looks in error area.

// combobox4         //          this.combobox4.displaymember = "<default>";         this.combobox4.formattingenabled = true;         this.combobox4.items.addrange(new object[] {         resources.getstring("combobox4.items")});         resources.applyresources(this.combobox4, "combobox4");         this.combobox4.name = "combobox4";         this.combobox4.selectedindexchanged += new system.eventhandler(this.combobox4_selectedindexchanged); 

the error @ "system.eventhandler(this.combobox4_selectedindexchanged" @ end. helping.

you removed method: this.combobox4_selectedindexchanged generated in code designer. can solve by:

1) add new method if want keep handler combobox.

private void combobox4_selectedindexchanged(object sender, eventargs e) { } 

2) remove this.combobox4.selectedindexchanged += new system.eventhandler(this.combobox4_selectedindexchanged); designer file if don't need eventhandler.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -