ActiveX Control, Displaying modeless form -- Error 401

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I know you can't display a modeless form when a modal form is
displayed. (VB 101). However, here's my issue.... I created an activeX
control that is basically a drop-down menu (similar to a ComboBox). The
drop down menu it self is a Form that I am show. Whenn I place my
ActiveX conrol on to a from in my parent application, then I show that
form as a Modal, then when I click to show my drop down menu, i get
error 401 "can't show non modal form, when modal form is displayed".
(No kidding). I can't show my form modally because I do not want the
parent application to loose focus.

I guess I need a way to show the from in a seperate thread? Or what? If
I was to use CreateWindow API, I'm sure I'd be able to do it, but
there's gotta be a easier way.


Thanks

Jason

.



Relevant Pages

  • Re: Displaying a non-modal form
    ... > non-modal form called Notification form, but I could not do it in VB ... > I get the Error 401 but as all might have noticed in Microsoft Outlook ... > you are watching a modal form for instance the Option dialog box, ... Call it passing certain pieces of info and it will display the form for you? ...
    (microsoft.public.vb.general.discussion)
  • Re: Display Modal Form but Still Process from Parent Form?
    ... How does the modal form close? ... The panel can cover all your other UI elements if you don't ... I would like Form A to display a "Waiting..." ... > 2) Prevents me from having to disable controls on Form A until the ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: thisform.visible
    ... I have a modal form that is displayed by another form. ... line in the load event of the modal form it ... will not display unless there is a debugger breakpoint in the init event ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Update table from another table...
    ... display the modal form, and then suddenly you are talking about not ... Student Name ... there are two ways to get rid of a modal form. ... Is this also a top-level form? ...
    (microsoft.public.fox.vfp.forms)
  • Newbie Quaestion on Referencing dataset from ShowModal Window
    ... ShowModal form have access to the parent form's dataset. ... Since the modal form is shared among many different parent ... dataset object variable in the modal form. ... MyModalWindow:= TMyModalWindow.Create; ...
    (borland.public.delphi.database.ado)