on my main form:
public string updateButtonText
{
get { return btnInbox.Text; }
set { btnInbox.Text = value; }
}
on my usercontrol:
public void refreshInbox()
{
try
{
mailboxLogic.constructInbox(lstViewInbox, StudentsData.studentUsername);
frmMailbox.updateButtonText = "Inbox" + "(" + MailboxLogic.emailcounter + ")";
}
catch (Exception ex)
{
MessageBox.Show("1"+ex.Message);
}
}
i am trying to call the updateButtonText method everytime i update my listview.can someone help please?