P
polarz
I have a menu item that will populate a datagrid when clicked, but
when I try to load the same data on startup I get the following error.
Cannot call Invoke or InvokeAsync on a control until the window handle
has been created.
if(Convert.ToBoolean(loadSum))
{
loadDataDelegate startLDD = new
loadDataDelegate(loadData);
Invoke(startLDD,new object[] {"collection"});
}
Above is the code I use to call my load function. This is the last
instruction in the Form1 constructor. Any suggestions are much
appreciated. Thank you.
when I try to load the same data on startup I get the following error.
Cannot call Invoke or InvokeAsync on a control until the window handle
has been created.
if(Convert.ToBoolean(loadSum))
{
loadDataDelegate startLDD = new
loadDataDelegate(loadData);
Invoke(startLDD,new object[] {"collection"});
}
Above is the code I use to call my load function. This is the last
instruction in the Form1 constructor. Any suggestions are much
appreciated. Thank you.