Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: Sql query to listbox using INAudioPlugin

$
0
0
I have also tried to move the query to the mainform.cs. When I do this I can get the results as I need them, however my listbox_SelectedIndexChanged throws and exception error because I am not referencing anything for the "listbox" variable. I can't explicitly convert data types to this data type either. I am more than happy to run my query from the mainform.cs if I could figure out how to call the recordingpanel. The following line is what is throwing the error:
var plugin = (INAudioPlugin)affiliatesListBox.SelectedItem;
Here is the error I receive
Unable to cast object of type 'System.String' to type 'myapp.INAudioPlugin'.
A first chance exception of type 'System.InvalidCastException' occurred in myapp.exe
If anyone could tell me how to call this recording panel or how to display multiple item in the listbox I'd much appreciate it. I'm open to anything at this point. I tried to create a list, array and databinding so far and no such luck. So I must be doing something wrong as I'm sure I"m not the only one using NAudio that would like have more than one item for the user to select.

Thank you very much in advance to anyone who can help me out with this. After spending 2 days trying to figure it out and unable to proceed with my app at this point, I have run out of ideas.

Viewing all articles
Browse latest Browse all 5831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>