471,321 Members | 2,097 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,321 software developers and data experts.

Thread again

hi. My problem with threading is somtething like that:
I start thread:

sub somesub()
t = New Threading.Thread(AddressOf threadsub)
sndThread.Start()

end sub

Public Sub threadsub()

Friend w As newsik

'Application.DoEvents()

'Threading.Thread.Sleep(1000)

'Application.DoEvents()

'Threading.Thread.Sleep(1000)

w = New newsik()

mainform.mojnewsik.Show()

End Sub

and unfortunetely the threadsub executes, ends and the thread is stoped, and
when it happens the w of newsik type is disposed.

How can i keep this w alive not suspending the proces like with w.showdialog

how?


Jul 21 '05 #1
0 870

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

44 posts views Thread by Charles Law | last post: by
31 posts views Thread by AlexeiOst | last post: by
3 posts views Thread by Philip V Pham | last post: by
4 posts views Thread by Matthew Groch | last post: by
9 posts views Thread by Chris Dunaway | last post: by
reply views Thread by Sir Spamallot | last post: by
12 posts views Thread by Ronny | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.