Click here to Skip to main content
15,921,276 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalhow to draw a rectangle on a pictureBox Pin
flamingo210-Oct-08 20:05
flamingo210-Oct-08 20:05 
Questionweb browser Pin
Shazz Rock10-Oct-08 0:45
Shazz Rock10-Oct-08 0:45 
AnswerRe: web browser Pin
jzonthemtn10-Oct-08 3:52
jzonthemtn10-Oct-08 3:52 
GeneralRe: web browser Pin
LloydA11110-Oct-08 8:37
LloydA11110-Oct-08 8:37 
QuestionControls and threads problem Pin
ambio9-Oct-08 22:52
ambio9-Oct-08 22:52 
AnswerRe: Controls and threads problem Pin
Dave Kreskowiak10-Oct-08 1:04
mveDave Kreskowiak10-Oct-08 1:04 
GeneralRe: Controls and threads problem Pin
ambio10-Oct-08 4:40
ambio10-Oct-08 4:40 
GeneralRe: Controls and threads problem Pin
Dave Kreskowiak10-Oct-08 5:14
mveDave Kreskowiak10-Oct-08 5:14 
No, it's not. All drawing happens on the UI thread, no matter what.

I thought you said you moved the long-running operation to a seperate thread and left the Scrolling Text on the UI thread.

Basically, since you have no source code or control over the control that's loading the move, it's going to do it's operation on the UI thread, no matter what you do. The only option you have is to find a control that loads it's data in it's own background thread. I don't know of any off the top of my head.

Basically, you have to get each operation you want running at the same time in it's own thread. All rendering will happen on the UI thread, no matter what. So, if any operation, like loading the movie, happens on the UI thread, all drawing for all other controls, no matter what thread they're on, will stop, until the movie is loaded.


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




GeneralRe: Controls and threads problem Pin
ambio12-Oct-08 22:34
ambio12-Oct-08 22:34 
GeneralRe: Controls and threads problem Pin
Dave Kreskowiak13-Oct-08 1:27
mveDave Kreskowiak13-Oct-08 1:27 
GeneralRe: Controls and threads problem Pin
ambio13-Oct-08 2:13
ambio13-Oct-08 2:13 
QuestionTransaction AS400 Pin
helelark1239-Oct-08 20:32
helelark1239-Oct-08 20:32 
AnswerRe: Transaction AS400 Pin
Ashfield9-Oct-08 21:34
Ashfield9-Oct-08 21:34 
GeneralRe: Transaction AS400 Pin
Mycroft Holmes9-Oct-08 21:41
professionalMycroft Holmes9-Oct-08 21:41 
GeneralRe: Transaction AS400 Pin
Wendelius10-Oct-08 7:01
mentorWendelius10-Oct-08 7:01 
AnswerRe: Transaction AS400 Pin
Kschuler10-Oct-08 6:41
Kschuler10-Oct-08 6:41 
AnswerRe: Transaction AS400 Pin
Wendelius10-Oct-08 7:59
mentorWendelius10-Oct-08 7:59 
QuestionSockets, remoting or web services which one to use? Pin
rprateek9-Oct-08 13:08
rprateek9-Oct-08 13:08 
AnswerRe: Sockets, remoting or web services which one to use? Pin
Mycroft Holmes9-Oct-08 21:46
professionalMycroft Holmes9-Oct-08 21:46 
QuestionRetrieve a large number of filenames Pin
Sonhospa9-Oct-08 8:57
Sonhospa9-Oct-08 8:57 
AnswerRe: Retrieve a large number of filenames Pin
Dave Kreskowiak9-Oct-08 9:26
mveDave Kreskowiak9-Oct-08 9:26 
AnswerRe: Retrieve a large number of filenames Pin
Wendelius9-Oct-08 9:27
mentorWendelius9-Oct-08 9:27 
GeneralRe: Retrieve a large number of filenames Pin
Sonhospa9-Oct-08 20:24
Sonhospa9-Oct-08 20:24 
AnswerRe: Retrieve a large number of filenames Pin
Jon_Boy10-Oct-08 4:26
Jon_Boy10-Oct-08 4:26 
QuestionRe: Retrieve a large number of filenames Pin
Sonhospa10-Oct-08 8:01
Sonhospa10-Oct-08 8:01 

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.