Skip to Content

Model Form

Hi All

I have created a fom which is a child form.I need the fuctionality to be worked as the child form is active parent should be inactive and it should not alow to select any other form if this child form is active.

The fuctionality will be same like our Model form in sample programs.



Edited by: Rui Pereira on Dec 23, 2008 3:36 PM

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 12, 2008 at 06:58 AM


    use a public Boolean variable

    Public Bool as Boolean = False

    after opening the Model Form give next line code as

    Bool = True

    Now when check for what ever the event they perform as below

    If Bool = True Then
    End If

    and while closing the Model form means on FormClose Event use the following

    Bool = False

    guess the above solves your problem



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.