Question Thread both forms

xilef

Member
Joined
Oct 31, 2009
Messages
6
Programming Experience
1-3
Using Visual Basic .Net 2005 Express

I made a console application that works perfectly, but I would like to display all my outputs onto a shiney windows form, I can get this working but when I click on the form the threading for the console sleeps until I select that, then the form sleeps until I select that, this is very bad because It's actually a server for a multiplayer RPG game.

How can I get my Form1.vb and my Module1.vb to run together?

My Console Application currently calls the Form1.vb with:
VB.NET:
Dim form as new Form1
form.showdialog()
My form1 currently has no processing at all, but when selected it sleeps my Module1 that handles real-time processing as a server.
 
Use a BackgroundWorker and in the DoWork event put something along the lines of:
VB.NET:
Application.Run(New Form1)
 
Back
Top