Quantcast
Viewing all articles
Browse latest Browse all 12583

error

hai i am developing a windows form application  but when i am executing the code iam getting a error like

Error1 Cannot use more than one type in a for, using, fixed, or declaration statement.

please tell me how to rectify the error the code is 

private void btnsend_Click(object sender, EventArgs e)
        {
            try
            {
                WebClient client= new WebClient();
                string to, msg
                to=txtTo.Text;
                msg=txtMsg.Text;
                string baseurl = "http://api.clickatell.com/http/sendmsg?api_id=xxxx&user=xxxx&password=xxxx&to='"+to+"'&text='"+msg+"'";
                client.OpenRead(baseurl);
                MessageBox.Show("message sent succesfully");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        
        }


Viewing all articles
Browse latest Browse all 12583

Trending Articles