Solved

Easy Form Question. Load form from thread.

Posted on 2004-11-01
173 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
Question by:Level10Access
    4 Comments
     
    LVL 28

    Expert Comment

    by:iboutchkine
    try
    frm.ShowModal
    0
     
    LVL 8

    Accepted Solution

    by:
    frm.ShowDialog
    0
     
    LVL 8

    Expert Comment

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

    Assisted Solution

    by:wguerram
    VB code:

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: MongoDB Object-Document Mapper for NodeJS

    NodeJS (JavaScript on the server) is awesome, but some developers get confused about NoSQL when it comes to working in Node with MongoDB (NoSQL database). Do you need a better explanation of how to use Node.js with MongoDB? The most popular choice is the Mongoose library.

    Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
    Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

    846 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

    Need Help in Real-Time?

    Connect with top rated Experts

    6 Experts available now in Live!

    Get 1:1 Help Now