مرحبا سؤال بس بسيط انا بعمل حفظ مثلا الاسم و الرقم و الخ و عندي صورة لما اجي اخزنها ما يزبط يطلعلي خطاء الكود كالتالي عشان توضح الفكرة لديكم
DataBase.CompanyDataSet.CustomerRow row = CustomerControl.DS.Customer.NewCustomerRow();
if (this.com_name_castomer.Text == "" || this.txt_companycastomer_castomer.Text == "" ||
this.txt_IDE_castomer.Text == "")
MessageBox.Show("PIZ ENTRY TEXT");
else
{
try
{
row.Name = com_name_castomer.Text;
row.CompanyCustomer = txt_companycastomer_castomer.Text;
row.Address = txt_address_castomer.Text;
row.Email = txt_email_castomer.Text;
row.Phone = int.Parse(txt_phone_castomer.Text);
row.CellularPhone = int.Parse(txt_cellularphone_castomer.Text);
row.CompanyAddress = txt_companyaddress_castomer.Text;
row.IDE = int.Parse(txt_IDE_castomer.Text);
row.Logo = pic_pic_logo_castomer.Image;هنا الخطاء و انا الازم احطها عشان يخزنها بالداتا
CustomerControl.DS.Customer.AddCustomerRow(row);
c.Update(CustomerControl.DS.Customer);
MessageBox.Show("Thanks");
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}المشكله لما احط row.logo = phicterbox.imge;ما يزبط بقلي الازم احطها في aryممكن حد بس يقلي كيف اعملها شكرا