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

Visual Basic

 
AnswerRe: how to draw a line on a picture box Pin
Thomas Stockwell10-Oct-08 4:29
professionalThomas Stockwell10-Oct-08 4:29 
AnswerRe: how to draw a line on a picture box Pin
C1AllenS10-Oct-08 4:55
C1AllenS10-Oct-08 4:55 
GeneralRe: how to draw a line on a picture box Pin
flamingo210-Oct-08 9:49
flamingo210-Oct-08 9:49 
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 
Hi everyone,
I'm writing a Windows Forms application that shows movies, images, scrolling text, ... in different panels on a form.

This is the process that I do:
1) I create the different panels on the form
2) I create an object of another class (MyClass), set some properties and call the start method of the created object.
3) The start method creates an instance of a control to show the movie, image, scrolling text, ... and add this instance to the right panel.
--> Step 2 and 3 happens for each panel on the form.

I encounter one problem when I use this process. I see that the scrolling text waits for a short moment when the movie starts to load, after it is loaded the text is running again. I thought that I could fix this problem by using threads.

So I changed my process:
1) I create the different panels on the form (MainThread)
2) I create an object of MyClass and set the property where the movie, image,... has to run in (so in which panel)
3) I create a new thread (MyNewThread). When the thread starts, I execute the start method in the MyClass object. This start method makes a new instance of a control. To add my instance of the control to the panel, I have to invoke my panel. Which results that I'm back in the MainThread. So the control, plays again in the MainThread.

So this process don't solve the problem about my scrolling text.

I want that the controls are running in a different thread than the MainThread. But I think this is not possible, because the main form is running in the MainThread and everything that I want to add on the form has to be done in the MainThread by using the invoke. I'm right?


The only thing that I want is that the instance of a control in a panel is working on his own. So that loading some things in one control does not have an influence on another control.

Has someone any idea to do it?

Thanks in advance,

Kurt.
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 
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 

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.