i have 2 datagrid and 2 button in one form..
if i click the GO!, the left datagrid will be filled with data..
and if i click the MINING!, surely the right datagrid will be filled..
but the problem is when i click the MINING button, right datagrid will be filled, but the left datagrid's data is automatically unloaded, resulting only right datagrid will be loaded with data..
here's the screenshot
so what i need is the two datagrid will display a data at same time..
is it possible to do that?
and one more question is there a simple way to automatically display a progress bar when i click the MINING button, because when i clicked it, it will run executequery
that took a long time to completed, it's about 10 to 60 seconds..
so to show that my program is not HANG, but it's still working on progress to completed..
only a simple circle progress bar will do, i mean there's no need to display an estimated time to complete.. like i said before, it's only to show that my program is working on progress not HANG
and by the way i'm using vb.net and mysql.. thanks before
UPDATED CODE
if ..... then
getcmd= "insert into node(...) select ..."
CMD = New MySqlCommand(getcmd, conn.connect)
CMD.ExecuteNonQuery()
CMD.Connection.Close()
elseif ... then
getcmd= "insert into node(...) select ..."
CMD = New MySqlCommand(getcmd, conn.connect)
CMD.ExecuteNonQuery()
CMD.Connection.Close()
else
getcmd= "insert into node(...) select ..."
CMD = New MySqlCommand(getcmd, conn.connect)
CMD.ExecuteNonQuery()
CMD.Connection.Close()
end if