Click here to Skip to main content
15,923,273 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionDisable some hot keys Pin
AndyASPVB18-Apr-09 4:57
AndyASPVB18-Apr-09 4:57 
AnswerRe: Disable some hot keys Pin
Zaegra18-Apr-09 5:36
Zaegra18-Apr-09 5:36 
AnswerRe: Disable some hot keys Pin
Eddy Vluggen18-Apr-09 6:57
professionalEddy Vluggen18-Apr-09 6:57 
AnswerRe: Disable some hot keys Pin
Mycroft Holmes18-Apr-09 17:22
professionalMycroft Holmes18-Apr-09 17:22 
GeneralRe: Disable some hot keys Pin
AndyASPVB18-Apr-09 22:41
AndyASPVB18-Apr-09 22:41 
QuestionRefreshing the UI during a long process using VB.NET 3.5 without Application.DoEvents - believe me Ive tried! Pin
Marcus J. Smith18-Apr-09 4:14
professionalMarcus J. Smith18-Apr-09 4:14 
QuestionRe: Refreshing the UI during a long process using VB.NET 3.5 without Application.DoEvents - believe me Ive tried! Pin
Eddy Vluggen18-Apr-09 6:51
professionalEddy Vluggen18-Apr-09 6:51 
AnswerRe: Refreshing the UI during a long process using VB.NET 3.5 without Application.DoEvents - believe me Ive tried! Pin
Luc Pattyn18-Apr-09 7:15
sitebuilderLuc Pattyn18-Apr-09 7:15 
Hi,

your GUI contains one or more handlers to react on user input such as buttons being clicked. For each of these handlers you should make sure they finish in "no time", no matter what.
"No time" means much less than one second if your prime concern is perfect GUI responsiveness,
or whatever your users will find acceptable.

Achieving that probably implies:
- not using any Thread.Sleep()
- not executing any loop waiting for something
- not performing synchronous I/O (unless a small timeout is applied)
- not waiting on something (such as a ManualResetEvent).

Everything that will, is likely to, or might, take longer must be delegated to another thread/threadpool/backgroundworker, and you cannot wait for it, since that would be the same as doing it yourself in the handler.

So it is not enough to use some backgroundworkers here and there, you must delegate everything that may take to long to threads/backgroundworkers.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in


AnswerRe: Refreshing the UI during a long process using VB.NET 3.5 without Application.DoEvents - believe me Ive tried! Pin
Luc Pattyn18-Apr-09 7:22
sitebuilderLuc Pattyn18-Apr-09 7:22 
QuestionMouse-event Improvement Pin
User 584223717-Apr-09 23:33
User 584223717-Apr-09 23:33 
AnswerRe: Mouse-event Improvement Pin
Eddy Vluggen18-Apr-09 0:24
professionalEddy Vluggen18-Apr-09 0:24 
GeneralRe: Mouse-event Improvement Pin
User 584223718-Apr-09 1:24
User 584223718-Apr-09 1:24 
GeneralRe: Mouse-event Improvement Pin
Eddy Vluggen18-Apr-09 1:33
professionalEddy Vluggen18-Apr-09 1:33 
GeneralRe: Mouse-event Improvement Pin
User 584223718-Apr-09 5:03
User 584223718-Apr-09 5:03 
GeneralRe: Mouse-event Improvement Pin
Eddy Vluggen18-Apr-09 5:52
professionalEddy Vluggen18-Apr-09 5:52 
GeneralRe: Mouse-event Improvement Pin
User 584223718-Apr-09 6:22
User 584223718-Apr-09 6:22 
GeneralRe: Mouse-event Improvement Pin
Eddy Vluggen18-Apr-09 6:50
professionalEddy Vluggen18-Apr-09 6:50 
GeneralRe: Mouse-event Improvement Pin
Mycroft Holmes18-Apr-09 2:03
professionalMycroft Holmes18-Apr-09 2:03 
AnswerRe: Mouse-event Improvement [modified] Pin
Johan Hakkesteegt20-Apr-09 2:39
Johan Hakkesteegt20-Apr-09 2:39 
GeneralRe: Mouse-event Improvement Pin
User 584223725-Apr-09 5:45
User 584223725-Apr-09 5:45 
QuestionHow can i create salary format in Textbox ? for example i want create 2000.00 . Pin
pramod251717-Apr-09 19:55
pramod251717-Apr-09 19:55 
AnswerRe: How can i create salary format in Textbox ? for example i want create 2000.00 . Pin
Rajesh Anuhya17-Apr-09 20:08
professionalRajesh Anuhya17-Apr-09 20:08 
AnswerRe: How can i create salary format in Textbox ? for example i want create 2000.00 . Pin
Andy_L_J17-Apr-09 22:16
Andy_L_J17-Apr-09 22:16 
AnswerRe: How can i create salary format in Textbox ? for example i want create 2000.00 . Pin
Johan Hakkesteegt20-Apr-09 1:41
Johan Hakkesteegt20-Apr-09 1:41 
QuestionError in using MemoryStream in VB.Net Pin
Viram Pandey17-Apr-09 3:57
Viram Pandey17-Apr-09 3:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.