Results 1 to 6 of 6

Thread: ActiveX lying to me. (non-modal forms)

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2004
    Posts
    8

    ActiveX lying to me. (non-modal forms)

    Hi,
    suffering here. Ive got an activex control that will basically be conducting a voluntary user survey of a website. The way it works is having one control to start off a form, which contains another activex control that actually does the survey.

    The problem is when the starter activex control launches the main form it give me a run time error 406 - non modal forms cannot be show in an activex dll etc.

    Apparently the solution to this is to make the project an activex exe, but of course having done this makes no difference whatsoever

    help?

  2. #2
    Lively Member
    Join Date
    Dec 2002
    Posts
    94
    How you are launching the form in activex dll or exe ?
    just try

    frmMain.show


    Praveen

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2004
    Posts
    8

    a

    The main form is launched by that. The starter control launches the main form with just TrackerForm.Show and that contains the main control

  4. #4
    Lively Member
    Join Date
    Dec 2002
    Posts
    94
    Is that another component shows another form.
    Showing that form gives error or Initializing that component itself is giving that error ?

    Anyway First gothrough this article once, Hope this helps you.

    http://msdn.microsoft.com/library/de...goleserver.asp

    Praveen

  5. #5

    Thread Starter
    New Member
    Join Date
    Feb 2004
    Posts
    8
    I read through that article, but I dont think that it is quite what I am looking for. Perhaps if i provide a little more background.

    The goal is to conduct a survey of website users - where they go etc. after the user agrees to participate a starter activex control is loaded - this has no visual component and serves only to start another form.

    The other form contains an activex control that monitors the users web browser. The form is always on top, and the titlebar does the blinky bit when you navigate between web pages. When the user clicks a button on the form saying they have reached their goal they are asked some questions and the survey ends.

    All this functionality works - when being run off vb 6. However, when i make it into either an ocx or an exe (signed and implenting IObjectSafety), I get this error on the moment the main form starts.

  6. #6

    Thread Starter
    New Member
    Join Date
    Feb 2004
    Posts
    8

    Angry now activex control not showing up!

    since the last post i have refactored the code a bit. I got rid of the two activex controls, replacing it with 1, which starts off a form which then monitors the ie events rather than having a second activex control in a form.

    Simple error from a newbie where I didnt have the InternetExplorer object in the correct place.

    Then the control decided to be a real pain about accepting parameters again, eventually got past that only to have my simple html form asking users if they want to take part in the survey (asks in html first to avoid downloading control everytime) decided to break and will only work using get method now whereas before it was fine with post???

    And now you get to the page with the activex control on it and it downloads it, hammering the hard disk for a few seconds then not doing anything. Class id etc. are correct.

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