• Notice regarding image hosts and attachments. See here.

vb .net Debugging Step Over not updating my Form

Permabanned
Joined
13 Nov 2006
Posts
5,798
Hi,

I'm just starting in .net and I have a listbox that I'm updating in code.

When I'm debugging and stepping over a bit of code that inserts a new item, the form is not updating in realtime.

Only when I click F5 to finish and continue, the form then updates.

Any ideas?
 
Last edited:
Thanks that helps.

I just remember the older versions of vb would update the form window as you step through each line of code.

Is the problem to do with multithreads?

The "problem" can I guess be explained by the fact your application is running under a single thread (there's a good reason for this). In essence, you're effectively asking your application to do two things:

1. Execute your function which updates the listbox control.
2. Re-paint the listbox and any other controls following the changes implemented by the previous function.

As it stands, I don't believe you have a functional requirement to update the form's display whilst the code is being processed? In which case, just use the Immediate window and monitor your form's controls from within there. :)
 
Back
Top Bottom