[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Easy Form Question. Load form from thread.

Posted on 2004-11-01
6
Medium Priority
?
280 Views
Last Modified: 2010-04-23
Hey guys, how do I load a form from a thread?

dim t as thread = new thread(address of mysub)
t.start

mysub
{
    dim frm as new formreport
    frm.show
}

 If I try this, the form opens and closes quickly. But if iopen the form without using the thread it opens fine. I'm confused.
0
Comment
Question by:Level10Access
  • 2
4 Comments
 
LVL 28

Expert Comment

by:iboutchkine
ID: 12466284
try
frm.ShowModal
0
 
LVL 8

Accepted Solution

by:
bramsquad earned 100 total points
ID: 12466320
frm.ShowDialog
0
 
LVL 8

Expert Comment

by:wguerram
ID: 12466535
mysub
{
    Application.Run(new formreport());
}
0
 
LVL 8

Assisted Solution

by:wguerram
wguerram earned 100 total points
ID: 12466539
VB code:

private sub mysub()
    Application.Run(new formreport())
end sub
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
There may be issues when you are trying to access Outlook or send & receive emails or due to Outlook crash which leads to corrupt or damaged PST file. To eliminate the corruption from your PST file, you need to repair the corrupt Outlook PST file. U…
Suggested Courses
Course of the Month10 days, 22 hours left to enroll

612 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question