Results 1 to 2 of 2

Thread: modal form as owner

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2004
    Posts
    5

    modal form as owner

    Hi,

    here's my problem :
    I have a main form [A] wich open a owned modal form [B].
    I would like to have a form C, owned by B, wich open when B is loading .
    Here is my code in B (pWizz is form C):

    VB Code:
    1. Private Sub on_load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
    2.  
    3.             Dim wz As pWizz
    4.             wz = New pWizz
    5.             wz.Owner = Me
    6.             wz.Show()                       ' optional
    7.             wz.TopMost = True          ' optional
    8.  
    9. End Sub

    This is ok, except, since B is modal, form C receive no events (I can't move it nor click on any control of it).

    So my question is : how can I do this (B must be modal to prevent any A inputs, B and C must both be able to receive inputs) while allowing C to receive click events ?

    Many thanks for any ideas.

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367
    You have to make form C modal as well and it will be able to receive clicks and events.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width