custum dialog form

Posted on 2007-07-28
Last Modified: 2012-05-05
I want to create a class like messagebox that work like this

when I call the shared method search I want to open a form like a search form and then do some selection and return that result directly to the variable1 and the inputbox
Question by:wladir
    1 Comment
    LVL 53

    Accepted Solution

    I see 2 options:
    1. You can create a form, that performs every logic you want. In this form you declare a public variable that holds the final result. You just have call it like this:
        dim myForm as new <form>
        Variable1 = myForm.Result

    2. You create a class, and in this class you call a form (like above). Then you can easily use something like you mentioned.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
    If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    733 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

    20 Experts available now in Live!

    Get 1:1 Help Now