Beginner's question
I am very new to C#. To be honest I am not very clear on what is causing my problems. A colleague has been helping me but I am getting a lot of errors. Here is my code below and then the errors I am getting under that and any help or direction would be appreciated:
private void btnInvoiceSearch_Click(object sender, System.EventArgs e)
{
Cursor.Current = Cursors.WaitCursor;
// Identify the variables from the form elements to pass to the stored procedure in the PSSBilling_WebService
string lstringClientID = txtClientID.SelectedText;
int lintMonthText = lstMonthText.SelectedIndex + 1;
string lstringYearText = lstYearText.SelectedItem;
InvoiceList il = new InvoiceList();
lblCount.Text = il.load( lstringClientID, lintMonthText, Convert.ToInt16( lstringYearText ).ToString());
}
This code is within my Form. The first bolded item tells me CANNOT IMPLICITLY CONVERT TYPE 'OBJECT' TO 'STRING'. I don't know what to do to fix it.
The second bolded item tells me NO OVERLOAD FOR METHOD 'LOAD' TAKES '3' ARGUMENTS.
ANY HELP would be appreciated. I am finding hard to follow this code. I've been reading a lot but still struggling.
Thank you.
|