Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am processing a lot of information that take up to 10 mins during one button click. For the time that it is processing this info, the program cannot be touched without freezing until the process is over. I would like for this not to happen and possibly put a cancel button somewhere to stop the operation if needed.

 

Maybe i need to run the code in a module???

Stress is directly associated with programming. But if I keep moving on to new stresses, then I am doing my job correctly!
Posted
elaborate?
Stress is directly associated with programming. But if I keep moving on to new stresses, then I am doing my job correctly!
Posted
The best choice will be multithreading... so you can run the process in a secondary thread, instead of running on the main thread...
Fat kids are harder to kidnap
Posted
ok but can you gimme some example code on how to multithread then? I dont know how to do this. thanks!!
Stress is directly associated with programming. But if I keep moving on to new stresses, then I am doing my job correctly!
  • *Experts*
Posted

This will do it.

Dim newthread As New System.Threading.Thread(AddressOf yoursubname)

You have to make a sub that will be ran in that thread.

Posted

I tried this and it can withstand a few mouse clicks more before it freeze, but it still does freeze.

I want to at least be able to use iexplore without the form going unresponsive...

Stress is directly associated with programming. But if I keep moving on to new stresses, then I am doing my job correctly!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...