c# - Adding a wizard to a blank project: "The operation could not be completed. No such interface supported" -
i've created custom wizard generates windows form through code lists out sql queries user. of testing of form , wizard itself, adding blank project bring form , test button click events , other general form stuff. fleshed out listbox's event listeners , ever since error:
googling has lead me lot of posts ruby, i'm not using. other suggestions reboot , re installation, , proved unsuccessful. attempted comment out listbox events did not keep error occuring, however, if helps here events in question:
//-----------event fired when listbox object double-clicked; populate listbox new databases--------- public void datalist_mousedoubleclick(object sender, eventargs e) { //temp string used hold name of clicked object string selectedname = datalist.selecteditem.tostring(); firstsel.tablevar = selectedname; foreach (tempdatavar t in datavars) { if (t.tablevar == firstsel.tablevar) { firstsel = t; } } string newq = "select column_name,* information_schema.columns table_name = '" + firstsel.tablevar + "' , table_schema= '" + firstsel.schemavar + "'";//order table_name'"; results = getdataset(bldr.tostring(), newq); //listbox1.items.clear(); foreach (datarow row in results.tables[0].rows) { //foreach (object x in row.itemarray) //{ // listbox1.items.add(x.tostring()); //} (int x = 0; x < row.itemarray.length; x++) { if (x == 0) { collist.items.add(row.itemarray[x]); } } } datalist.enabled = false; } //-----------------------------event fires when index of second listbox changes-------------------------- private void collist_selectedindexchanged(object sender, eventargs e) { btnyes.enabled = true; }
noobie mistake fixed co-worker! blindly copied , pasted following code "how make wizard tutorial":
[comvisible(true)] [guid("20184b81-7c38-4e02-a1e3-8d564eec2d25"), progid("mynewwizard.class1")]
this code needed directly above mynewwizard class , accidentally pasted in custom tempdatavar class in white space between these lines , start of mynewwizard class. if you're receiving similar error i'd suggest testing around order of of attributes/classes!
Comments
Post a Comment