G
Guest
I have a win app. this a form with a button. after pressing the button a new
form is shown. when looading the form is being filled by data taken from a
database. the problem is that it takes a few seconds, so a user has to wait a
long time. i want to do something like that - when you have pressed the
button on the first form a new window should appear ("please wait when
loading"). in background the the main new form should be loading data from
the db. when it has finished, the form with the sentence "please wait..."
should close/hide.
i think i need threads. am i right? how to do that? i have tried something,
but it doesnt work. the new form doesnt respond to the user
form is shown. when looading the form is being filled by data taken from a
database. the problem is that it takes a few seconds, so a user has to wait a
long time. i want to do something like that - when you have pressed the
button on the first form a new window should appear ("please wait when
loading"). in background the the main new form should be loading data from
the db. when it has finished, the form with the sentence "please wait..."
should close/hide.
i think i need threads. am i right? how to do that? i have tried something,
but it doesnt work. the new form doesnt respond to the user