Safeer Safeer

Safeer Safeer

  • NA
  • 201
  • 38.2k

link button clicking existing form showing , please

May 6 2014 4:42 AM
here is my code when am clicking link label   didnt get that form but there showing error 
 
Error18The best overloaded method match for 'OverdueSalesOrder.CallFromReminder(ReminderPopUp)' has some invalid arguments 
 
Error19Argument 1: cannot convert from 'ile' to 'ReminderPopUp' ile.cs
 
 
 
private void lnklblReminderSalesdue_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
try
{
frmOverdueSalesOrder frmoverdueSalesOrderObj = new frmOverdueSalesOrder();
frmOverdueSalesOrder open = Application.OpenForms["frmOverdueSalesOrder"] as frmOverdueSalesOrder;
if (open == null)
{
frmoverdueSalesOrderObj.MdiParent = formMDI.MDIObj;
frmoverdueSalesOrderObj.CallFromReminder(this);
}
else
{
open.Activate();
}
}
catch (Exception ex)
{
MessageBox.Show("pRPU:3" + ex.Message, "", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}



 public void CallFromReminder(frmReminderPopUp frmReminder)
        {
            try
            {
                base.Show();
                DataTable dtbl = new DataTable();
                dtbl = new ReminderSP().ShortExpiryReminder(0, 0, 0, 0, 0, 0, 0, 0);
                dgvProductExpiry.DataSource = dtbl;
                this.frmReminderPopupObj = frmReminder;
                frmReminderPopupObj.Enabled = false;
            }
            catch (Exception ex)
            {
                MessageBox

Answers (1)