سلام
dataadapter.fill(datatable);
if (dt.rows.count>0)
frmmain.show();