I have a form called frmMain and it calls a function in DBQueries.cs, there is a panel created in the DBQueries class and i need to add it to a panel that already exists in the frmMain, i just can't figure out how to reference the panel in frmMain??
panRecentList is the panel on frmMain and this code is in DBQueries, how do i reference the last like of the code here??
panRecentList is the panel on frmMain and this code is in DBQueries, how do i reference the last like of the code here??
Code:
Label error = new label(); error.Text = "Unable to retrieve recent list."; panRecentList.Controls.Add(error);
Comment