Click here to Skip to main content
15,926,596 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: API to get Application Status (running, stopped, etc) Pin
Mitch F.17-Mar-08 18:08
Mitch F.17-Mar-08 18:08 
GeneralRe: API to get Application Status (running, stopped, etc) Pin
Scott Dorman17-Mar-08 18:13
professionalScott Dorman17-Mar-08 18:13 
GeneralRe: API to get Application Status (running, stopped, etc) Pin
Mitch F.17-Mar-08 18:34
Mitch F.17-Mar-08 18:34 
GeneralRe: API to get Application Status (running, stopped, etc) Pin
Scott Dorman18-Mar-08 2:58
professionalScott Dorman18-Mar-08 2:58 
GeneralRe: API to get Application Status (running, stopped, etc) [modified] Pin
Mitch F.18-Mar-08 8:55
Mitch F.18-Mar-08 8:55 
GeneralRe: API to get Application Status (running, stopped, etc) Pin
Scott Dorman18-Mar-08 9:50
professionalScott Dorman18-Mar-08 9:50 
Generalupdating VB form Pin
Orlando234517-Mar-08 16:12
Orlando234517-Mar-08 16:12 
GeneralRe: updating VB form Pin
Luc Pattyn17-Mar-08 16:26
sitebuilderLuc Pattyn17-Mar-08 16:26 
Hi,

the effects of GUI changes that you order in an event handler typically will show
up only after that handler has exited, so if you set 4 different text values to a
single control, it will only show the last one.

There are a few solutions to this:

1.
the universal approach is to somehow split the actions, e.g. by adding at least one
thread (and then that thread is not allowed to access your GUI elements, so you
have to start using Control.InvokeRequired and Control.Invoke).

2.
another way to slice the job is by using a Windows.Forms.Timer; it will tick periodically
on the GUI thread, so it is allowed to access your Controls.

3.
a quick hack is to leave all as is and to include Application.DoEvents() statements
everytime you want immediate GUI results; this however is dangerous: if your handler
ever gets called recursively, a stack overflow may result. Example: a long handler
might restart if you press the button again before its first action has finished,
since every DoEvents() looks for Windows messages AS IF everything that has already
been started also has finished.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.


Generalselecting a single selectedValue with a list view control Pin
AAGTHosting17-Mar-08 11:37
AAGTHosting17-Mar-08 11:37 
GeneralRe: selecting a single selectedValue with a list view control Pin
Dave Kreskowiak18-Mar-08 3:45
mveDave Kreskowiak18-Mar-08 3:45 
Questionhow to clear MS Access synchronization list? Pin
Eric Georgiades17-Mar-08 10:08
Eric Georgiades17-Mar-08 10:08 
GeneralRe: how to clear MS Access synchronization list? Pin
Dave Kreskowiak18-Mar-08 3:42
mveDave Kreskowiak18-Mar-08 3:42 
GeneralRe: how to clear MS Access synchronization list? Pin
Eric Georgiades18-Mar-08 5:01
Eric Georgiades18-Mar-08 5:01 
QuestionDisplaying how many users are currently logged into a web application - Please help Pin
Mr Business Kid17-Mar-08 9:51
Mr Business Kid17-Mar-08 9:51 
GeneralRe: Displaying how many users are currently logged into a web application - Please help Pin
Christian Graus17-Mar-08 10:38
protectorChristian Graus17-Mar-08 10:38 
GeneralRe: Displaying how many users are currently logged into a web application - Please help Pin
Mr Business Kid17-Mar-08 10:49
Mr Business Kid17-Mar-08 10:49 
GeneralRe: Displaying how many users are currently logged into a web application - Please help Pin
Dave Kreskowiak17-Mar-08 13:01
mveDave Kreskowiak17-Mar-08 13:01 
GeneralRe: Displaying how many users are currently logged into a web application - Please help Pin
Christian Graus17-Mar-08 13:25
protectorChristian Graus17-Mar-08 13:25 
GeneralRe: Displaying how many users are currently logged into a web application - Please help [modified] Pin
nlarson1117-Mar-08 16:10
nlarson1117-Mar-08 16:10 
GeneralThere is no row at position 0 Pin
AAGTHosting17-Mar-08 7:03
AAGTHosting17-Mar-08 7:03 
GeneralRe: There is no row at position 0 Pin
Dave Kreskowiak18-Mar-08 3:03
mveDave Kreskowiak18-Mar-08 3:03 
GeneralDropdown list remains visible Pin
cstrader23217-Mar-08 5:07
cstrader23217-Mar-08 5:07 
GeneralRe: Dropdown list remains visible Pin
Dave Kreskowiak18-Mar-08 2:56
mveDave Kreskowiak18-Mar-08 2:56 
Generalnetwork sockets Pin
Cory Kimble17-Mar-08 4:29
Cory Kimble17-Mar-08 4:29 
GeneralRe: network sockets Pin
Dave Kreskowiak18-Mar-08 3:28
mveDave Kreskowiak18-Mar-08 3:28 

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.