1
Answer

Manually force firing of owner drawn listbox event

Photo of J A

J A

16y
2.8k
1

eg.

this.lstColor.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable;

this.lstColor.DrawItem += new DrawItemEventHandler(this.DrawItemHandler);


how do i manually invoke this event on the listbox, or fire an event only on demand etc. 

thanks in advance for your help.


-Jer


Answers (1)

0
Photo of Mitesh Mistry
NA 27 1.4k 9y
it shows me this error : localhost.SqlParameter does not contain a constructor that takes 2 arguments
 
in
param[0] = new localhost.SqlParameter("KeyWord", b[1].ToString());
this line...
 
 
0
Photo of Khan Abrar Ahmed
NA 5.8k 200k 9y
Hi u can try like this
 
localhost.SqlParameter[] param = new localhost.SqlParameter[2];
param[0] = new localhost.SqlParameter("KeyWord", "Testing");
param[1] = new localhost.SqlParameter("PageSize", 20);
var objGetDetail = Obj1.GetDetail("SP_Related", param).Tables[0];