i have to try refer attribute from another form and success
this is part of code
public MainForm mainFormRef;
public int id;
private Connection conn;
public FormInformation(ref MainForm mainForm)
{
mainFormRef = mainForm;
InitializeComponent();
loadData();
}
private void loadData()
{
id = mainFormRef.id;
conn = Connection.GetInstance();
var pixelRangeDao = new PixelRangeDao(conn.GetConnection());
var pixelRanges = pixelRangeDao.GetDataById(id);
lbHeader.Text = pixelRanges.description.ToString();
lbInformation.Text = pixelRanges.information.ToString();
}