Display a modal form on top of a modeless form

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: TC (getmyemails2_at_yahoo.com)
Date: 02/14/05


Date: Mon, 14 Feb 2005 05:19:24 -0500

Hello,

I have COM addin that displays a modeless form. When the user makes
certain selections, the modeless form is hidden and a modal form is
displayed.

Unfortunately, the modal form is behaving as modeless!

>From within VBA, the above scenario works perfectly.

I will also add that the forms are displayed on top of the parent
application using the SetWindowLong API.

Any advice?

Thanks & Regards,

TC



Relevant Pages

  • Re: Complex focus problem
    ... You can if the modal form is smaller than the modeless form and doesn't cover it all. ... Dim hWndParentForm As Long ... >> This modeless userform behaves like an application through some API ...
    (microsoft.public.excel.programming)
  • Re: Complex focus problem
    ... I can't see a way to fix this with API or anything else. ... >> modal form is loaded the modal ... > click the modeless form. ... >>>> This modeless userform behaves like an application through some API ...
    (microsoft.public.excel.programming)
  • Re: Complex focus problem
    ... >>> modal form is loaded the modal ... >> Peter T ... >>> The thing is that I don't want to hide the modeless form. ... >>> one line of code extra. ...
    (microsoft.public.excel.programming)
  • Re: Complex focus problem
    ... > It has the slight side-effect that if you click the modeless form when the ... because if the modal form is loaded and is ... >>> This modeless userform behaves like an application through some API ...
    (microsoft.public.excel.programming)
  • Re: Complex focus problem
    ... Lib "user32" Alias "FindWindowA" _ (ByVal lpClassName As String, _ ByVal lpWindowName As String) As Long ... Private Declare Function SetWindowLong _ ... hWndParentForm = FindWindow'the modeless form ... It has the slight side-effect that if you click the modeless form when the modal form is loaded the modal ...
    (microsoft.public.excel.programming)