Click here to Skip to main content
15,909,953 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Help On Forms and threads Pin
Christian Graus20-Sep-06 0:11
protectorChristian Graus20-Sep-06 0:11 
GeneralRe: Help On Forms and threads Pin
RG_SA20-Sep-06 0:20
RG_SA20-Sep-06 0:20 
GeneralRe: Help On Forms and threads Pin
Christian Graus20-Sep-06 0:22
protectorChristian Graus20-Sep-06 0:22 
GeneralRe: Help On Forms and threads Pin
RG_SA20-Sep-06 0:33
RG_SA20-Sep-06 0:33 
GeneralRe: Help On Forms and threads Pin
Christian Graus20-Sep-06 0:41
protectorChristian Graus20-Sep-06 0:41 
GeneralRe: Help On Forms and threads Pin
RG_SA20-Sep-06 0:47
RG_SA20-Sep-06 0:47 
GeneralRe: Help On Forms and threads Pin
RG_SA20-Sep-06 0:35
RG_SA20-Sep-06 0:35 
AnswerRe: Help On Forms and threads Pin
RG_SA20-Sep-06 2:50
RG_SA20-Sep-06 2:50 
Hi Christian
I managed to get it write and thought you may be interested, it's pretty funny it only takes two lines of code. It was the issue of the child thread. The way to get round the problem is :
Imports System.Threading
Public Class Test

Public t As Thread

Public Sub Start()
t = New Thread(AddressOf tstartdes)
t.Start()
End Sub

Public caller As New MethodInvoker(AddressOf newform)

Public Sub tstartdes()
Form1.ActiveForm.Invoke(caller)
End Sub

Dim F As Form
Public Sub newform()
F = New Form2
F.Show()
End Sub

End Class

The method invoker is what does it, it is then invoked from the main thread running the main form.

Yay ... It's working
GeneralRe: Help On Forms and threads Pin
Dave Kreskowiak20-Sep-06 4:53
mveDave Kreskowiak20-Sep-06 4:53 
Questioncreate link on datagrid column Pin
mellvincent19-Sep-06 22:43
mellvincent19-Sep-06 22:43 
QuestionIndependent Application Instances Pin
hrodberaht19-Sep-06 22:11
hrodberaht19-Sep-06 22:11 
AnswerRe: Independent Application Instances Pin
Marco Turrini19-Sep-06 22:46
Marco Turrini19-Sep-06 22:46 
GeneralRe: Independent Application Instances Pin
hrodberaht19-Sep-06 22:53
hrodberaht19-Sep-06 22:53 
QuestionDLL Problem Pin
Sasmi19-Sep-06 21:46
Sasmi19-Sep-06 21:46 
AnswerRe: DLL Problem Pin
Christian Graus19-Sep-06 21:49
protectorChristian Graus19-Sep-06 21:49 
GeneralRe: DLL Problem Pin
Sasmi19-Sep-06 21:58
Sasmi19-Sep-06 21:58 
QuestionDLL Problem Pin
Sasmi19-Sep-06 21:10
Sasmi19-Sep-06 21:10 
AnswerRe: DLL Problem Pin
Christian Graus19-Sep-06 21:19
protectorChristian Graus19-Sep-06 21:19 
Questioncomma delimited text file Pin
minniemooo19-Sep-06 20:30
minniemooo19-Sep-06 20:30 
AnswerRe: comma delimited text file Pin
_AK_19-Sep-06 21:47
_AK_19-Sep-06 21:47 
Questionstop refresh of drawing Pin
amilapradeep19-Sep-06 17:41
amilapradeep19-Sep-06 17:41 
AnswerRe: stop refresh of drawing Pin
Christian Graus19-Sep-06 17:44
protectorChristian Graus19-Sep-06 17:44 
GeneralRe: stop refresh of drawing Pin
Dave Kreskowiak20-Sep-06 2:11
mveDave Kreskowiak20-Sep-06 2:11 
GeneralRe: stop refresh of drawing Pin
Christian Graus20-Sep-06 10:46
protectorChristian Graus20-Sep-06 10:46 
AnswerRe: stop refresh of drawing Pin
Dave Kreskowiak20-Sep-06 2:10
mveDave Kreskowiak20-Sep-06 2:10 

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.