How to use Thread to release the application from freezing in c#
问题 I have the code below for scanning but When i press the button to start scanning, the windows form freezes and i can not move the form or minimizie/colse it until the process will be finished! i'm new in working with Thread but i tried to add Thread andi couldn't solve the problem. Does anyone know to where (how) can i write a Thread to release my form from freezing? Thanks. public Bitmap GetBitmapFromRawData(int w, int h, byte[] data) { //Do sth } //button to start the scan proccess private